Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/highlighting/FinalInitializer.java
T
Tagir Valeevandintellij-monorepo-bot 3110c87f51 [java-highlighting] fragment errors, illegal forward references migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 5b74826b2383518fa7a8a0fcbbd0d17271aa8381
2025-01-20 18:45:06 +00:00

11 lines
235 B
Java

class MyTest {
final Runnable lambdaRunnable = () -> {
System.out.println(<error descr="Cannot read value of field 'o' before the field's definition">o</error>);
};
final Object o;
MyTest(Object o) {
this.o = o;
}
}