Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/regression/IDEA137694.java

13 lines
338 B
Java

class Test {
Test() {
foo(<error descr="Unhandled exception: java.lang.Exception">this::fs</error>);
foo((s) -> <error descr="Unhandled exception: java.lang.Exception">fs</error>(s));
}
void foo(I<String, String> iss) {}
String fs(String s) throws Exception { throw new Exception(); }
}
interface I<T, R> {
R f(T t);
}