mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
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){
|
|
Runnable[] x = a.<error descr="Incompatible types. Found: 'capture<? extends java.lang.Cloneable[]>', required: 'java.lang.Runnable[]'">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){
|
|
Runnable[] x = a.<error descr="Incompatible types. Found: 'capture<? extends java.lang.Cloneable[]>', required: 'java.lang.Runnable[]'">bar</error>();
|
|
}
|
|
}
|
|
|