summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/test/com/siyeh/ipp/types/methodRefs2lambda/NewRefsInference_after.java
blob: cd937894625ec1749bb0ae9434cb04fc5cf03d29 (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 = (x) -> new MyTest<String>(x);
    }
}