mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: mark erased for type params/raw types compatibility (IDEA-122932)
This commit is contained in:
@@ -5,6 +5,11 @@ class Foo<T> {
|
||||
|
||||
public void test(Foo parent) {
|
||||
List<Foo> elements = getElements(parent);
|
||||
|
||||
|
||||
for (<error descr="Incompatible types. Found: 'java.lang.Object', required: 'Foo'">Foo foo : getElements(parent)</error>) {
|
||||
System.out.println(foo);
|
||||
}
|
||||
}
|
||||
|
||||
public static <E extends Foo<E>> List<E> getElements(E parent) {
|
||||
|
||||
Reference in New Issue
Block a user