JVM_IR KT-44993 preserve inner expression type when fusing if-null

This commit is contained in:
Dmitry Petrov
2021-03-16 11:15:18 +03:00
committed by TeamCityServer
parent 922419efb8
commit decfaa3ba5
10 changed files with 140 additions and 7 deletions
@@ -36540,6 +36540,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/regressions/kt4281.kt");
}
@Test
@TestMetadata("kt44993.kt")
public void testKt44993() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt44993.kt");
}
@Test
@TestMetadata("kt5056.kt")
public void testKt5056() throws Exception {
@@ -36540,6 +36540,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/regressions/kt4281.kt");
}
@Test
@TestMetadata("kt44993.kt")
public void testKt44993() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt44993.kt");
}
@Test
@TestMetadata("kt5056.kt")
public void testKt5056() throws Exception {
@@ -1358,6 +1358,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
runTest("compiler/testData/ir/irText/expressions/kt42321.kt");
}
@Test
@TestMetadata("kt44993.kt")
public void testKt44993() throws Exception {
runTest("compiler/testData/ir/irText/expressions/kt44993.kt");
}
@Test
@TestMetadata("kt45022.kt")
public void testKt45022() throws Exception {