[fixes #3370] Support Helper in method

This commit is contained in:
Rawi01
2023-05-05 22:48:19 +02:00
parent 250bc0660b
commit 37ac1bf4cd
9 changed files with 55 additions and 4 deletions
@@ -0,0 +1,22 @@
import lombok.experimental.Helper;
public class HelperInInitializationBlock {
{
final int z = 5;
if (Boolean.TRUE) {
@Helper class H1 {
void foo(int x) {
System.out.println("Hello, " + (x + z));
}
}
foo(10);
@Helper class H2 {
void bar() {
foo(12);
}
}
}
}
}