mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
testdata for IDEA-136325
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
class MyTest {
|
||||
|
||||
private Test<LinkedList> alist;
|
||||
|
||||
|
||||
public Test<LinkedList> getAlist() {
|
||||
return alist = create(Test::new, alist);
|
||||
}
|
||||
|
||||
|
||||
private <T> T create(CreateCallback<T> callback, T defaultVal) {
|
||||
if (defaultVal == null) {
|
||||
return callback.create();
|
||||
}
|
||||
return defaultVal;
|
||||
}
|
||||
|
||||
interface CreateCallback<T> {
|
||||
T create();
|
||||
}
|
||||
|
||||
class Test<E extends List> {}
|
||||
}
|
||||
Reference in New Issue
Block a user