captured wildcards: don't open unpredictably, treat as type, not type argument (IDEA-148348)

This commit is contained in:
Anna Kozlova
2015-11-26 19:23:09 +01:00
parent f7e9660f0d
commit e43fad4277
12 changed files with 63 additions and 25 deletions
@@ -34,7 +34,7 @@ class Test1111 {
}
public void test(I<?> i) {
bar<error descr="'bar(Test1111.I<? super A>)' in 'Test1111' cannot be applied to '(Test1111.I<capture<?>>)'">(i)</error>;
bar(i);
}
public static <A> void bar(I<? super A> i) {}