diff options
Diffstat (limited to 'test/transform/resource/after-ecj/ValOutersWithGenerics.java')
-rw-r--r-- | test/transform/resource/after-ecj/ValOutersWithGenerics.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValOutersWithGenerics.java b/test/transform/resource/after-ecj/ValOutersWithGenerics.java new file mode 100644 index 00000000..b4225ede --- /dev/null +++ b/test/transform/resource/after-ecj/ValOutersWithGenerics.java @@ -0,0 +1,34 @@ +import java.util.*; +import lombok.val; +public class ValOutersWithGenerics<Z> { + class Inner { + Inner() { + super(); + } + } + static class SubClass extends ValOutersWithGenerics<String> { + SubClass() { + super(); + } + public void testSubClassOfOutersWithGenerics() { + List<Inner> list = new ArrayList<Inner>(); + final @val ValOutersWithGenerics<java.lang.String>.Inner elem = list.get(0); + } + } + public ValOutersWithGenerics() { + super(); + } + public void testOutersWithGenerics() { + final @val java.lang.String foo = ""; + List<Inner> list = new ArrayList<Inner>(); + final @val ValOutersWithGenerics<Z>.Inner elem = list.get(0); + } + public void testLocalClasses() { + class Local<A> { + Local() { + super(); + } + } + final @val Local<java.lang.String> q = new Local<String>(); + } +} |