Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/regression/IDEA137694.java
2015-03-16 20:14:18 +01:00

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(s)</error>);
}
void foo(I<String, String> iss) {}
String fs(String s) throws Exception { throw new Exception(); }
}
interface I<T, R> {
R f(T t);
}