mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
15 lines
425 B
Java
15 lines
425 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 = bar<error descr="'bar(Sample.G<B>)' in 'Sample' cannot be applied to '(Sample.G1)'">(g1)</error>;
|
|
String l1 = bar<error descr="'bar(Sample.G<B>)' in 'Sample' cannot be applied to '(Sample.G1)'">(g1)</error>;
|
|
Object o = bar(g1);
|
|
}
|
|
}
|