summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/test/com/siyeh/ipp/types/methodRefs2lambda/NewRefsInference_after.java
blob: 22e5bef3534861ad3e1903c620df41fb7e576c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class MyTest<X> {

    MyTest(X x) {}

    interface I<Z> {
        MyTest<Z> m(Z z);
    }

    static <Y> void test(I<Y> s, Y arg) {
        s.m(arg);
    }

    static {
        I<String> s = (z) -> new MyTest<String>(z);
    }
}