mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 14:21:47 +00:00
732c7257e1
... 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.
15 lines
329 B
Java
15 lines
329 B
Java
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;
|
|
}
|
|
}
|