Fehler in Test beheben
This commit is contained in:
parent
4261ce2603
commit
43bfc551ff
@ -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){}
|
||||||
}
|
}
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user