mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 02:50:55 +07:00
9 lines
264 B
Java
9 lines
264 B
Java
class X<T> { }
|
|
|
|
class A<T, S extends X<T>> {}
|
|
|
|
class C {
|
|
void foo(A<?, X<?>> a){ <error descr="Inferred type 'X<?>' for type parameter 'S' is not within its bound; should extend 'X<capture<?>>'">bar(a)</error>; }
|
|
<T, S extends X<T>> void bar(A<T, S> a){ }
|
|
}
|