mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
type compatibility constrain: unchecked conversion step
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
public class Sample {
|
||||
interface G<A> {}
|
||||
interface G1 extends G {}
|
||||
|
||||
void foo(G1 g1) {
|
||||
bar(g1);
|
||||
}
|
||||
<B>void bar(G<B> gb) {}
|
||||
|
||||
void foo(G1[] g1) {
|
||||
bar(g1);
|
||||
}
|
||||
<B>void bar(G<B>[] gb) {}
|
||||
}
|
||||
Reference in New Issue
Block a user