FIR: Change semantics for combination of safe calls and operators

^KT-41034 Fixed
This commit is contained in:
Denis.Zharkov
2022-01-26 18:19:17 +03:00
parent 0dd5042e62
commit 772579143b
34 changed files with 811 additions and 68 deletions
@@ -41267,12 +41267,36 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/safeCall"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("augmentedAssigmentPlus.kt")
public void testAugmentedAssigmentPlus() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlus.kt");
}
@Test
@TestMetadata("augmentedAssigmentPlusAssign.kt")
public void testAugmentedAssigmentPlusAssign() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/augmentedAssigmentPlusAssign.kt");
}
@Test
@TestMetadata("genericNull.kt")
public void testGenericNull() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/genericNull.kt");
}
@Test
@TestMetadata("incrementPostfix.kt")
public void testIncrementPostfix() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/incrementPostfix.kt");
}
@Test
@TestMetadata("incrementPrefix.kt")
public void testIncrementPrefix() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/incrementPrefix.kt");
}
@Test
@TestMetadata("kt1572.kt")
public void testKt1572() throws Exception {
@@ -41368,6 +41392,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
public void testSafeCallWithElvisFolding() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallWithElvisFolding.kt");
}
@Test
@TestMetadata("withAssignment.kt")
public void testWithAssignment() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/withAssignment.kt");
}
}
@Nested