diff --git a/test/javFiles/Fields.jav b/test/javFiles/Fields.jav index 1add83ca0..cd2add71c 100644 --- a/test/javFiles/Fields.jav +++ b/test/javFiles/Fields.jav @@ -1,7 +1,7 @@ import java.lang.String; class Fields{ -String test2 = "test"; +test2 = "test"; test; m(){ var test3; diff --git a/test/typeinference/JavaTXCompilerTest.java b/test/typeinference/JavaTXCompilerTest.java index b785c0dc9..d3401a0bb 100644 --- a/test/typeinference/JavaTXCompilerTest.java +++ b/test/typeinference/JavaTXCompilerTest.java @@ -23,7 +23,6 @@ import java.util.Set; public class JavaTXCompilerTest { public static final String rootDirectory = System.getProperty("user.dir")+"/test/javFiles/"; - @Test public void finiteClosure() throws IOException, ClassNotFoundException { execute(new File(rootDirectory+"fc.jav")); @@ -41,6 +40,10 @@ public class JavaTXCompilerTest { execute(new File(rootDirectory+"Lambda3.jav")); } @Test + public void lambdaField() throws IOException, ClassNotFoundException { + execute(new File(rootDirectory+"LambdaField.jav")); + } + @Test public void mathStruc() throws IOException, ClassNotFoundException { execute(new File(rootDirectory+"mathStruc.jav")); }