mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
25 lines
668 B
Java
25 lines
668 B
Java
abstract class A<T, S extends T>
|
|
{
|
|
abstract S bar();
|
|
void foo(A<Runnable[], ? extends Cloneable[]> a){
|
|
<error descr="Incompatible types. Found: 'capture<? extends java.lang.Cloneable[]>', required: 'java.lang.Runnable[]'">Runnable[] x = a.bar();</error>
|
|
}
|
|
}
|
|
|
|
abstract class AB<T, S extends T>
|
|
{
|
|
abstract S bar();
|
|
void foo(AB<Runnable, ? extends Cloneable> a){
|
|
Runnable x = a.bar();
|
|
}
|
|
}
|
|
|
|
abstract class AC<T, S>
|
|
{
|
|
abstract S bar();
|
|
void foo(AC<Runnable[], ? extends Cloneable[]> a){
|
|
<error descr="Incompatible types. Found: 'capture<? extends java.lang.Cloneable[]>', required: 'java.lang.Runnable[]'">Runnable[] x = a.bar();</error>
|
|
}
|
|
}
|
|
|