summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/test/com/siyeh/ipp/types/methodRefs2lambda/Ambiguity_after.java
blob: b0e14f13dad87878a4d119052d1af9b7278864dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class MyTest {

    static void m(Integer i) { assertTrue(true); }

    interface I1 {
        void m(int x);
    }

    interface I2 {
        void m(Integer x);
    }

    static void call(Integer i, I1 s) {}
    static void call(int i, I2 s) {}

    public static void main(String[] args) {
        call(1, (x) -> MyTest.m(x));
    }
}