mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification (IDEA-157586)
This commit is contained in:
+1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user