[FIR] KT-56723: Ensure safe access over non-expressions is always Unit

^KT-56723 Fixed
This commit is contained in:
Nikolay Lunyak
2023-02-17 18:04:51 +02:00
committed by Space Team
parent a8370ea994
commit be5850112a
22 changed files with 414 additions and 18 deletions
@@ -36013,6 +36013,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unit/kt51036.kt");
}
@Test
@TestMetadata("kt56723.kt")
public void testKt56723() throws Exception {
runTest("compiler/testData/codegen/box/unit/kt56723.kt");
}
@Test
@TestMetadata("nullableUnit.kt")
public void testNullableUnit() throws Exception {
@@ -36199,6 +36199,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unit/kt51036.kt");
}
@Test
@TestMetadata("kt56723.kt")
public void testKt56723() throws Exception {
runTest("compiler/testData/codegen/box/unit/kt56723.kt");
}
@Test
@TestMetadata("nullableUnit.kt")
public void testNullableUnit() throws Exception {
@@ -36199,6 +36199,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unit/kt51036.kt");
}
@Test
@TestMetadata("kt56723.kt")
public void testKt56723() throws Exception {
runTest("compiler/testData/codegen/box/unit/kt56723.kt");
}
@Test
@TestMetadata("nullableUnit.kt")
public void testNullableUnit() throws Exception {
@@ -36199,6 +36199,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/unit/kt51036.kt");
}
@Test
@TestMetadata("kt56723.kt")
public void testKt56723() throws Exception {
runTest("compiler/testData/codegen/box/unit/kt56723.kt");
}
@Test
@TestMetadata("nullableUnit.kt")
public void testNullableUnit() throws Exception {