forked from JavaTX/JavaCompilerCore
modified: src/test/java/typeinference/JavaTXCompilerTest.java
modified: src/test/resources/javFiles/IfTest.jav modified: src/test/resources/javFiles/ListenerOverload.jav modified: src/test/resources/javFiles/fc.jav
This commit is contained in:
parent
071f4cd9ca
commit
723eca8658
@ -135,7 +135,7 @@ public class JavaTXCompilerTest {
|
|||||||
}
|
}
|
||||||
List<ResultSet> results = compiler.typeInference();
|
List<ResultSet> results = compiler.typeInference();
|
||||||
List<GenericGenratorResultForSourceFile> simplifyResultsForAllSourceFiles = compiler.getGeneratedGenericResultsForAllSourceFiles(results);
|
List<GenericGenratorResultForSourceFile> simplifyResultsForAllSourceFiles = compiler.getGeneratedGenericResultsForAllSourceFiles(results);
|
||||||
|
//compiler.generateBytecode(rootDirectory+"xxx.class", results, simplifyResultsForAllSourceFiles);
|
||||||
for(File f : compiler.sourceFiles.keySet()){
|
for(File f : compiler.sourceFiles.keySet()){
|
||||||
SourceFile sf = compiler.sourceFiles.get(f);
|
SourceFile sf = compiler.sourceFiles.get(f);
|
||||||
System.out.println(ASTTypePrinter.print(sf));
|
System.out.println(ASTTypePrinter.print(sf));
|
||||||
|
@ -2,7 +2,7 @@ import java.lang.Integer;
|
|||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Object;
|
import java.lang.Object;
|
||||||
|
|
||||||
public class IfTest{
|
public class IfTest {
|
||||||
Object m1(b) {
|
Object m1(b) {
|
||||||
Integer i;
|
Integer i;
|
||||||
if(b) {
|
if(b) {
|
||||||
|
@ -14,7 +14,7 @@ call(String s){}
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Pair<A,B>{
|
class Pair{
|
||||||
A left;
|
left;
|
||||||
B right;
|
right;
|
||||||
}
|
}
|
@ -8,7 +8,7 @@ class Test{
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Klasse1{
|
interface Klasse1{
|
||||||
Klasse1 meth(List p);
|
Klasse1 meth(p);
|
||||||
Klasse1 meth(Klasse2 p);
|
Klasse1 meth(Klasse2 p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user