mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
inference: ensure nested methods lift their bounds (IDEA-122681)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.util.Set;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class IDEA122681 {
|
||||
private static <E> Set<E> getSet(E element) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static <T> T getObject(Supplier<T> supplier) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static Object getObjectFromString(String string) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static void callGetSet() {
|
||||
getSet(getObjectFromString(getObject(String ::new)));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user