mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
9 lines
316 B
Java
9 lines
316 B
Java
interface A<T extends B<? extends T>> { }
|
|
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;
|
|
}
|
|
} |