Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/exceptions/LambdaParamExceptionVariable.java
2017-03-24 13:19:01 +01:00

11 lines
302 B
Java

class Test {
interface F<T extends Throwable> {
void m(T t) throws T;
}
<K extends Throwable> void foo(F<K> f) throws K { }
{
foo((t)->{});
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo((ClassNotFoundException t)->{});</error>
}
}