generics: choose least bound symmetric (IDEA-57500)

This commit is contained in:
anna
2013-04-30 18:12:19 +02:00
parent 504c2c3867
commit 4e3928010b
3 changed files with 19 additions and 1 deletions
@@ -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);
}
}