mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-06 14:41:20 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
15 lines
455 B
Java
15 lines
455 B
Java
public class Sample {
|
|
interface G<A> {}
|
|
interface G1 extends G {}
|
|
void foo(G1 g1) {
|
|
bar(g1);
|
|
}
|
|
<B> B bar(G<B> gb) {return null;}
|
|
|
|
void f(G1 g1) {
|
|
G<String> l11 = <error descr="Incompatible types. Found: 'java.lang.Object', required: 'Sample.G<java.lang.String>'">bar</error>(g1);
|
|
String l1 = <error descr="Incompatible types. Found: 'java.lang.Object', required: 'java.lang.String'">bar</error>(g1);
|
|
Object o = bar(g1);
|
|
}
|
|
}
|