mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-15 12:20:21 +00:00
... unfortunately eclipse's val resolver is now very slightly worse in very exotic circumstances - spent about 4 hours trying to fix it, can't figure it out, let's move on.
20 lines
562 B
Java
20 lines
562 B
Java
import lombok.val;
|
|
public class ValWithSelfRefGenerics {
|
|
public ValWithSelfRefGenerics() {
|
|
super();
|
|
}
|
|
public void run(Thing<? extends Comparable<?>> thing, Thing<?> thing2, java.util.List<? extends Number> z) {
|
|
final @val java.util.List<? extends java.lang.Number> y = z;
|
|
final @val Thing<? extends java.lang.Comparable<?>> x = thing;
|
|
final @val Thing<?> w = thing2;
|
|
final @val java.lang.Object v = thing2.get();
|
|
}
|
|
}
|
|
class Thing<T extends Comparable<? super T>> {
|
|
Thing() {
|
|
super();
|
|
}
|
|
public T get() {
|
|
return null;
|
|
}
|
|
} |