diff --git a/pom.xml b/pom.xml
index 3f7cc7e3..c2ee1230 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,8 +122,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
org.apache.maven.plugins
maven-compiler-plugin
-
- 17
+
+ 18
--enable-preview
diff --git a/src/test/java/targetast/TphTest.java b/src/test/java/targetast/TphTest.java
index c2bb9835..198bea5b 100644
--- a/src/test/java/targetast/TphTest.java
+++ b/src/test/java/targetast/TphTest.java
@@ -18,6 +18,9 @@ public class TphTest {
var classFiles = TestCodegen.generateClassFiles("Tph.jav", new ByteArrayClassLoader());
classToTest = classFiles.get("Tph");
instanceOfClass = classToTest.getDeclaredConstructor().newInstance();
+ classFiles = TestCodegen.generateClassFiles("Tph7.jav", new ByteArrayClassLoader());
+ classToTest = classFiles.get("Tph7");
+ instanceOfClass = classToTest.getDeclaredConstructor().newInstance();
}
@Test
diff --git a/src/test/resources/bytecode/javFiles/Tph.jav b/src/test/resources/bytecode/javFiles/Tph.jav
index 9faa570c..3f9d0aab 100644
--- a/src/test/resources/bytecode/javFiles/Tph.jav
+++ b/src/test/resources/bytecode/javFiles/Tph.jav
@@ -3,7 +3,6 @@ public class Tph {
m(a,b){
var c = m2(b);
return a;
-// return m2(b);
}
m2(b){
diff --git a/src/test/resources/bytecode/javFiles/Tph7.jav b/src/test/resources/bytecode/javFiles/Tph7.jav
new file mode 100644
index 00000000..cc55afb5
--- /dev/null
+++ b/src/test/resources/bytecode/javFiles/Tph7.jav
@@ -0,0 +1,11 @@
+public class Tph7 {
+
+ m(a,b){
+ var c = m2(b);
+ return m2(b);
+ }
+
+ m2(b){
+ return b;
+ }
+}
\ No newline at end of file