summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/AssertNumberOfParameters.java
blob: 9449054c0a18173d999d75adfd805208cddde1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Test {
    interface I {
        void m(Integer x1, Integer x2, Integer x3);
    }

    static class Foo {
       static void foo() {}
    }

    <T> void bar(I i) {}

    void test() {
        bar(Foo::<error descr="Cannot resolve method 'foo'">foo</error>);
    }
}