aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/ValWeirdTypes.java1
-rw-r--r--test/transform/resource/before/ValWithSelfRefGenerics.java14
2 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValWeirdTypes.java b/test/transform/resource/before/ValWeirdTypes.java
index 157ffc76..8dd63e86 100644
--- a/test/transform/resource/before/ValWeirdTypes.java
+++ b/test/transform/resource/before/ValWeirdTypes.java
@@ -44,6 +44,7 @@ public class ValWeirdTypes<Z> {
val d = upper;
List<?> unbound = lower;
val e = unbound;
+ val f = unbound.get(0);
}
public void testCompound() {
diff --git a/test/transform/resource/before/ValWithSelfRefGenerics.java b/test/transform/resource/before/ValWithSelfRefGenerics.java
new file mode 100644
index 00000000..d0532606
--- /dev/null
+++ b/test/transform/resource/before/ValWithSelfRefGenerics.java
@@ -0,0 +1,14 @@
+import lombok.val;
+public class ValWithSelfRefGenerics {
+ public void run(Thing<? extends Comparable<?>> thing, Thing<?> thing2, java.util.List<? extends Number> z) {
+ val y = z;
+ val x = thing;
+ val w = thing2;
+ val v = thing2.get();
+ }
+}
+class Thing<T extends Comparable<? super T>> {
+ public T get() {
+ return null;
+ }
+}