forked from JavaTX/JavaCompilerCore
Remove duplicate testcase
This commit is contained in:
parent
b43afd40ee
commit
d7380c6cb7
@ -52,8 +52,8 @@ public class ASTToTypedTargetAST {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void generics() throws Exception {
|
public void tphsAndGenerics() throws Exception {
|
||||||
var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav").toFile();
|
var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/Tph2.jav").toFile();
|
||||||
var compiler = new JavaTXCompiler(file);
|
var compiler = new JavaTXCompiler(file);
|
||||||
var resultSet = compiler.typeInference();
|
var resultSet = compiler.typeInference();
|
||||||
var converter = new ASTToTargetAST(resultSet);
|
var converter = new ASTToTargetAST(resultSet);
|
||||||
@ -61,4 +61,5 @@ public class ASTToTypedTargetAST {
|
|||||||
|
|
||||||
var tphAndGenerics = TestCodegen.generateClass(converter.convert(classes.get(0)));
|
var tphAndGenerics = TestCodegen.generateClass(converter.convert(classes.get(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
class TPHsAndGenerics {
|
|
||||||
id = x -> x;
|
|
||||||
|
|
||||||
id2(x) {
|
|
||||||
return id.apply(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
m(a, b) {
|
|
||||||
var c = m2(a, b);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
m2(a, b) {
|
|
||||||
return b;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user