diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-05-12 09:03:57 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-05-12 09:08:34 +0200 |
commit | a8f9b1dd359dbbcd63bffe891c5f00a9a2ac1f60 (patch) | |
tree | 3ae54c09404fe190e1d485fda9689a54e6a5d65d /test/transform/resource/before | |
parent | 6758714ed564d72236564889157c4812eacb96fb (diff) | |
download | lombok-a8f9b1dd359dbbcd63bffe891c5f00a9a2ac1f60.tar.gz lombok-a8f9b1dd359dbbcd63bffe891c5f00a9a2ac1f60.tar.bz2 lombok-a8f9b1dd359dbbcd63bffe891c5f00a9a2ac1f60.zip |
[fixes #2420] Copy vartype.type
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/ValAnonymousSubclassSelfReference.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValAnonymousSubclassSelfReference.java b/test/transform/resource/before/ValAnonymousSubclassSelfReference.java new file mode 100644 index 00000000..6ca05b3c --- /dev/null +++ b/test/transform/resource/before/ValAnonymousSubclassSelfReference.java @@ -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() { }; + } +}
\ No newline at end of file |