KT-36956 fix back-end part in JVM and JVM_IR

PSI2IR: deparenthesize LHS expression when generating assignment
receiver.

FE: record 'set' operator call for code generation.
This commit is contained in:
Dmitry Petrov
2020-02-28 11:49:29 +03:00
parent f764d3a021
commit 2010d8d2b9
14 changed files with 245 additions and 31 deletions
@@ -9912,6 +9912,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/increment/genericClassWithGetSet.kt");
}
@TestMetadata("kt36956.kt")
public void testKt36956() throws Exception {
runTest("compiler/testData/codegen/box/increment/kt36956.kt");
}
@TestMetadata("memberExtOnLong.kt")
public void testMemberExtOnLong() throws Exception {
runTest("compiler/testData/codegen/box/increment/memberExtOnLong.kt");
@@ -9977,6 +9977,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/increment/genericClassWithGetSet.kt");
}
@TestMetadata("kt36956.kt")
public void testKt36956() throws Exception {
runTest("compiler/testData/codegen/box/increment/kt36956.kt");
}
@TestMetadata("memberExtOnLong.kt")
public void testMemberExtOnLong() throws Exception {
runTest("compiler/testData/codegen/box/increment/memberExtOnLong.kt");