mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +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> {}
|
||||
Reference in New Issue
Block a user