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:
Anna.Kozlova
2017-01-02 12:24:19 +01:00
parent d33ee0ad81
commit 178e834fb9
3 changed files with 18 additions and 2 deletions

View File

@@ -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;
}
}