mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: unchecked conversion detection in case of inference variables (IDEA-122932)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class Foo<Bazz> {
|
||||
|
||||
public void test(Foo parent) {
|
||||
<error descr="Incompatible types. Found: 'java.lang.Object', required: 'Foo'">Foo foo = getElements(parent).get(0);</error>
|
||||
}
|
||||
|
||||
public static <E extends Foo<E>> List<E> getElements(E parent) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user