Fehler in Test beheben

This commit is contained in:
JanUlrich 2017-05-09 20:15:42 +02:00
parent 4261ce2603
commit 43bfc551ff
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
class Methods { class Methods {
mt4(a,b,c) { return a.add(b).sub(c) ; } mt4(a,b,c) { return a.add(b).sub(c) ; }
mt1(a) {return a; } mt1(a) {return a;}
mt2(a) {return a.f; } mt2(a) {return a.f; }
@ -12,6 +12,6 @@ class Methods {
class Test { class Test {
f; f;
add(){} add(){}
add(b){} add(b){return b;}
sub(b){} sub(b){}
} }

View File

@ -17,10 +17,10 @@ public class JavaTXCompilerTest {
@Test @Test
public void test() throws IOException, ClassNotFoundException { public void test() throws IOException, ClassNotFoundException {
JavaTXCompiler compiler = new JavaTXCompiler(); 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+"Generics.jav"));
//compiler.parse(new File(rootDirectory+"MethodsEasy.jav")); //compiler.parse(new File(rootDirectory+"MethodsEasy.jav"));
compiler.parse(new File(rootDirectory+"Lambda.jav")); //compiler.parse(new File(rootDirectory+"Lambda.jav"));
compiler.typeInference(); compiler.typeInference();
} }
} }