mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-23 15:49:31 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
18 lines
557 B
Java
18 lines
557 B
Java
import java.util.List;
|
|
|
|
class Sample {
|
|
<T extends List<K>, K extends List<T>> T foo(){
|
|
T t = foo().<error descr="Incompatible types. Found: 'K', required: 'T'">get</error>(0);
|
|
K k = foo().<error descr="Incompatible types. Found: 'K', required: 'K'">get</error>(0);
|
|
|
|
T t1 = foo().get(0).<error descr="Incompatible types. Found: 'T', required: 'T'">get</error>(0);
|
|
|
|
String s = foo();
|
|
String s1 = foo().<error descr="Incompatible types. Found: 'K', required: 'java.lang.String'">get</error>(0);
|
|
return null;
|
|
}
|
|
|
|
{
|
|
foo();
|
|
}
|
|
} |