mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
generics: do not accept inferred lower bound when inferred through raw type (IDEA-93672)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
interface Condition<K> {}
|
||||
class IOC<M> implements Condition {}
|
||||
|
||||
static <T> List<T> filter(T[] c, Condition<? super T> con) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface OE {}
|
||||
interface LOE extends OE {}
|
||||
|
||||
void foo(OE[] es, IOC<LOE> con) {
|
||||
List<LOE> l = filter(es, con);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user