apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification (IDEA-157586)

This commit is contained in:
Anna Kozlova
2016-06-22 15:24:15 +03:00
parent 61adc187bb
commit 7968b2bbbb
7 changed files with 37 additions and 5 deletions
@@ -4,5 +4,6 @@ interface B<T extends A<?>> { }
class C {
void foo(A<?> x){
<error descr="Incompatible types. Found: 'A<capture<?>>', required: 'A<? extends B<? extends A<?>>>'">A<? extends B<? extends A<?>>> y = x;</error>
Object y1 = (A<? extends B<? extends A<?>>>) x;
}
}