mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
method refs: missed super class substitution (IDEA-126969)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class IDEA126969 {
|
||||
void foo(final Stream<List<Integer>> stream) {
|
||||
|
||||
stream.flatMap(List::stream)
|
||||
.forEach(i -> System.out.println(i.floatValue()));
|
||||
|
||||
stream.flatMap(Collection::stream)
|
||||
.forEach(i -> System.out.println(i.floatValue()));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user