blob: d0532606b2027252cac68712acc5d463fb32d9da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
}
|