[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
@@ -39842,6 +39842,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
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 {
@@ -39344,6 +39344,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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 {