mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
checked exception compatibility constraint: don't substitute with inferred variables as types are already constructed based on substituted values, so avoid dbl substitution which leads to errors in case of references to the containing method (IDEA-166104)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
interface TreeUtils {
|
||||
|
||||
static <K> Stream<List<K>> treeStream(List<K> treeItem) {
|
||||
Stream<List<K>> stream = null;
|
||||
stream.flatMap(TreeUtils::treeStream);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user