mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
new inference: accept raw equality
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
class Foo<T> {
|
||||
|
||||
public void test(Foo parent) {
|
||||
List<Foo> elements = getElements(parent);
|
||||
}
|
||||
|
||||
public static <E extends Foo<E>> List<E> getElements(E parent) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user