[java-highlighting] IDEA-256804 Highlighting bug when using JDK 15 Records

GitOrigin-RevId: fd7fe3f1bcfe89e65f754038b4021ac003abb9f7
This commit is contained in:
Tagir Valeev
2020-12-04 10:41:55 +07:00
committed by intellij-monorepo-bot
parent 2a18b3e8f9
commit 7c62cd67fe
2 changed files with 9 additions and 0 deletions

View File

@@ -6,3 +6,11 @@ record WrittenFields(int x,
if (Math.random() > 0.5) <error descr="Cannot assign a value to final variable 'y'">this.y</error> = 1;
}
}
// IDEA-256804
record CompactCtorDelegate(String a) {
public CompactCtorDelegate {}
public CompactCtorDelegate() {
this("hello");
System.out.println(String.valueOf(this.a.charAt(0)));
}
}