summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/InferFromConditionalExpressionCondition.java
blob: 8fad96c118edc19368a2fdb02f7c316adba675f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Test {
  static class TKey<T> {
  }

  public interface Getter {
    <T> T getValue(TKey<T> key);
  }

  static final TKey<Boolean> KEY_B = new TKey<>();

  public static void f(Getter getter) {
    String name = getter.getValue(KEY_B) ? "foo" : "bar";
  }
}