mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
don't loose type parameter bounds during super substitution (IDEA-175471)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class P<T, Self extends P<T, Self>> { }
|
||||
|
||||
class MM<T, H extends P<T, H>> {
|
||||
H last;
|
||||
|
||||
void m(final Function<P<T, ?>, P<T, ?>> function) {
|
||||
generate(last, function);
|
||||
}
|
||||
public static <E> void generate(E first, Function<? super E, ? extends E> generator) { }
|
||||
|
||||
}
|
||||
interface Function<Param, Result> {}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
interface Child<T extends Serializable> extends List<T> {
|
||||
default void m(List<Child<?>> l) {
|
||||
List<? extends List<? extends Serializable>> ll = l;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user