non wildcard parameterization: workaround problems caused by different parameterizations of the same class during glb algorithm (IDEA-132690)

This commit is contained in:
Anna Kozlova
2015-09-01 16:30:50 +03:00
parent d7f75583f9
commit 21e2fd41c0
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,13 @@
interface A<T> {
void method(B<? extends A<? super T>> arg);
}
interface B<T extends A<?>> {
void method();
}
class Test {
public static void test(A<?> a) {
a.method(() -> {});
}
}