mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
generics: choose least bound symmetric (IDEA-57500)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
package pck;
|
||||
|
||||
interface I<T> {}
|
||||
interface A extends I<I<? extends String>>{}
|
||||
interface B extends I<I<?>>{}
|
||||
|
||||
abstract class X {
|
||||
abstract <T> T foo(T x, T y);
|
||||
|
||||
void bar(A x, B y){
|
||||
foo(x, y);
|
||||
foo(y, y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user