diff --git a/test/javFiles/Methods.jav b/test/javFiles/Methods.jav index 4a6c9d6c..7ecd4d3f 100644 --- a/test/javFiles/Methods.jav +++ b/test/javFiles/Methods.jav @@ -2,7 +2,7 @@ class Methods { mt4(a,b,c) { return a.add(b).sub(c) ; } - mt1(a) {return a; } + mt1(a) {return a;} mt2(a) {return a.f; } @@ -12,6 +12,6 @@ class Methods { class Test { f; add(){} - add(b){} + add(b){return b;} sub(b){} } \ No newline at end of file diff --git a/test/typeinference/JavaTXCompilerTest.java b/test/typeinference/JavaTXCompilerTest.java index 4df1c29d..31f0a622 100644 --- a/test/typeinference/JavaTXCompilerTest.java +++ b/test/typeinference/JavaTXCompilerTest.java @@ -17,10 +17,10 @@ public class JavaTXCompilerTest { @Test public void test() throws IOException, ClassNotFoundException { JavaTXCompiler compiler = new JavaTXCompiler(); - //compiler.parse(new File(rootDirectory+"Methods.jav")); + compiler.parse(new File(rootDirectory+"Methods.jav")); //compiler.parse(new File(rootDirectory+"Generics.jav")); //compiler.parse(new File(rootDirectory+"MethodsEasy.jav")); - compiler.parse(new File(rootDirectory+"Lambda.jav")); + //compiler.parse(new File(rootDirectory+"Lambda.jav")); compiler.typeInference(); } } \ No newline at end of file