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