Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/LeftSideNotAnonymous.java
Bas Leijdekkers 0cae65939b Java: improve incompatible types reporting
- only report type with "anonymous" prefix when the left side is anonymous
- use short names in the tool tip when fq names would be identical as well
- use error color for the entire type name, including the anonymous prefix

GitOrigin-RevId: f1555687adb0ab9e7c5850719165a7a508ecf181
2024-02-11 16:31:14 +00:00

7 lines
172 B
Java

class X {}
class Y {
public void main(String[] args) {
var x = new X();
<error descr="Incompatible types. Found: 'Y', required: 'X'">x = new Y() {}</error>;
}
}