summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/highlighting/Ambiguity1.java
blob: 02bbebd074b0825b200bb58778f80af816de97b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
interface I1 {
  void m();
}

interface I2<X> {
  X m();
}

class Ambiguity1 {

  static void m(I1 i1) {}
  static <T> void m(I2<T> i2) {}

  {
    m(()->{throw new AssertionError();});
    m(() -> {});
    m(() -> {
        if (false) return;
        throw new RuntimeException();
    });
  }
}