[fixes #3370] Support Helper in method

This commit is contained in:
Rawi01 committed 2023-05-05 22:48:19 +02:00
1 parent 250bc0660b
commit 37ac1bf4cd
9 files changed
+55 -4

No files matched your search

@@ -0,0 +1,19 @@
public class HelperInInitializationBlock {
{
final int z = 5;
if (Boolean.TRUE) {
class H1 {
void foo(int x) {
System.out.println("Hello, " + (x + z));
}
}
final H1 $H1 = new H1();
$H1.foo(10);
class H2 {
void bar() {
$H1.foo(12);
}
}
}
}
}