diff --git a/src/test/java/targetast/ASTToTypedTargetAST.java b/src/test/java/targetast/ASTToTypedTargetAST.java index db1c635f6..881e0cb7c 100644 --- a/src/test/java/targetast/ASTToTypedTargetAST.java +++ b/src/test/java/targetast/ASTToTypedTargetAST.java @@ -52,8 +52,8 @@ public class ASTToTypedTargetAST { } @Test - public void generics() throws Exception { - var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav").toFile(); + public void tphsAndGenerics() throws Exception { + var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/Tph2.jav").toFile(); var compiler = new JavaTXCompiler(file); var resultSet = compiler.typeInference(); var converter = new ASTToTargetAST(resultSet); @@ -61,4 +61,5 @@ public class ASTToTypedTargetAST { var tphAndGenerics = TestCodegen.generateClass(converter.convert(classes.get(0))); } + } diff --git a/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav b/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav deleted file mode 100644 index 84844c9b1..000000000 --- a/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav +++ /dev/null @@ -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; - } -} \ No newline at end of file