summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/IDEA126969.java
blob: e981d28298b525460d0591e4d7188f8d8c075337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()));

  }
}