summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/IDEA127928.java
blob: d0c118198599ed168852d120a3df6bfbe233209c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;

class CastLambdaParameter {

  void main(final Map<Integer, String> map) {
    Set<Function<Object, String>> property2formatter = foo(bar((joint) ->  map.get((Integer)joint)));
  }

  public static <B> Set<B> foo(List<B> property2name) {return property2name != null ? null : null;}
  public static <B> Set<B> foo(List<B>... property2name) {return property2name != null ? null : null;}
  public static <B> Set<B> foo(Set<B> property2name) {return property2name != null ? null : null;}

  public static <TB> List<TB> bar(TB b) {
    return null;
  }

}