mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-14 04:27:17 +07:00
9 lines
343 B
Java
9 lines
343 B
Java
|
|
class B<T>{}
|
|
class A<T extends B<? extends Runnable>> {
|
|
void bar(A<? extends B<? extends Cloneable>> a){
|
|
<error descr="Inferred type 'B<? extends java.lang.Cloneable>' for type parameter 'T' is not within its bound; should extend 'B<java.lang.Object>'">foo(a)</error>;
|
|
}
|
|
|
|
<S, T extends B<S>> void foo(A<? extends T> a){}
|
|
} |