Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA128159.java
Tagir Valeev 79c582597a [java-highlighting] return statement errors migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 4449ffc2458eeb73fa296453f6963a6eeed28a76
2025-01-27 18:52:56 +00:00

10 lines
323 B
Java

class Bug {
static A test(A[] as) {
for (<error descr="Incompatible types. Found: 'Bug.B', required: 'Bug.A'">B b</error> : as) {
return <error descr="Incompatible types. Found: 'Bug.B', required: 'Bug.A'">b</error>;
}
return null;
}
static class A {}
static class B {}
}