Java Records: do not generate non-physical assignments for records, handle it separately

GitOrigin-RevId: 73d10fc5b48e08efd4f0e0bbee019b7263a7e098
This commit is contained in:
Roman.Ivanov
2019-12-26 05:32:27 +00:00
committed by intellij-monorepo-bot
parent 3cdbb65fec
commit 9f7fd6f214
3 changed files with 9 additions and 11 deletions
@@ -46,4 +46,9 @@ record NotInitializedField(int <error descr="Record component 'x' might not be i
if (Math.random() > 0.5) this.y = y;
this.z = z;
}
}
record ImplicitCanonicalConstructor(String s) {
static void test() {
new ImplicitCanonicalConstructor("Asdasd");
}
}