Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/regression/IDEA137694.java
Tagir Valeev 059a080ab3 [java-highlighting] Fix testdata, tooltips
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
2025-01-22 10:33:39 +00:00

13 lines
338 B
Java

class Test {
Test() {
foo(this::<error descr="Unhandled exception: java.lang.Exception">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);
}