mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
type compatibility constrain: unchecked conversion: return type is inference variable case
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
public class Sample {
|
||||
interface G<A> {}
|
||||
interface G1 extends G {}
|
||||
|
||||
<B> B bar(B b) {return null;}
|
||||
|
||||
void f(G1 g1) {
|
||||
G<String> l11 = bar(g1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user