Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/ExprReceiver.java

16 lines
302 B
Java

class ThreadExample {
interface Function<T, R> {
R apply(T t);
}
{
A a = new A();
Function<? super A,? extends String> foo = a::<error descr="Cannot resolve method 'foo'">foo</error>;
}
static class A {
public String foo() { return "a"; }
}
}