[fixes #2420] Copy vartype.type

This commit is contained in:
Rawi01
2021-05-12 09:03:57 +02:00
parent 6758714ed5
commit a8f9b1dd35
4 changed files with 39 additions and 0 deletions
@@ -0,0 +1,12 @@
// issue 2420: to trigger the problem 2 var/val, one normal variable and a anonymous self reference is required
import lombok.val;
public class ValAnonymousSubclassSelfReference {
public void test() {
int i = 0;
val j = 1;
val k = 2;
new ValAnonymousSubclassSelfReference() { };
}
}