mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
inference: mark call unchecked required when proper types are compared (IDEA-164243)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class Test {
|
||||
private static AG<AE> foo(Class clz) {
|
||||
return (AG<AE>) foo1(clz);
|
||||
}
|
||||
|
||||
private static <T extends E> G<T> foo1(Class<? extends E> clz) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface E {}
|
||||
interface AE extends E {}
|
||||
|
||||
interface G<T extends E> {}
|
||||
interface AG<T extends AE> extends G<T> {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user