summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/test/com/siyeh/ipp/types/lambda2anonymous/Ambiguity.java
blob: 6df5c30ae69a5b3632fae751cec61057da0d3202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
interface I1 {
  void m();
}

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

class Ambiguity1 {

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

  {
    m((<caret>)->{throw new AssertionError();});
  }
}