Add test for #112

This commit is contained in:
Daniel Holle 2024-03-04 12:19:56 +01:00
parent 388614b220
commit 1877d7f170
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
public class Bug112 {
m(x) {
var y;
x = y;
return y;
}
}

View File

@ -869,4 +869,11 @@ public class TestComplete {
var clazz = classFiles.get("Bug125");
var instance = clazz.getDeclaredConstructor().newInstance();
}
@Test
public void testBug112() throws Exception {
var classFiles = generateClassFiles(new ByteArrayClassLoader(), "Bug112.jav");
var clazz = classFiles.get("Bug112");
var instance = clazz.getDeclaredConstructor().newInstance();
}
}