[Wasm] Fix generation optimised when expression with Nothing type

Fixed #KT-62147
This commit is contained in:
Igor Yakovlev
2023-09-22 14:19:45 +02:00
parent 624d35fefd
commit 758484a01f
19 changed files with 146 additions and 3 deletions
@@ -41001,6 +41001,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt");
}
@Test
@TestMetadata("nothingTyped.kt")
public void testNothingTyped() throws Exception {
runTest("compiler/testData/codegen/box/when/nothingTyped.kt");
}
@Test
@TestMetadata("nullableWhen.kt")
public void testNullableWhen() throws Exception {
@@ -42055,6 +42055,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt");
}
@Test
@TestMetadata("nothingTyped.kt")
public void testNothingTyped() throws Exception {
runTest("compiler/testData/codegen/box/when/nothingTyped.kt");
}
@Test
@TestMetadata("nullableWhen.kt")
public void testNullableWhen() throws Exception {
@@ -40475,6 +40475,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt");
}
@Test
@TestMetadata("nothingTyped.kt")
public void testNothingTyped() throws Exception {
runTest("compiler/testData/codegen/box/when/nothingTyped.kt");
}
@Test
@TestMetadata("nullableWhen.kt")
public void testNullableWhen() throws Exception {
@@ -41002,6 +41002,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/when/noElseNoMatch.kt");
}
@Test
@TestMetadata("nothingTyped.kt")
public void testNothingTyped() throws Exception {
runTest("compiler/testData/codegen/box/when/nothingTyped.kt");
}
@Test
@TestMetadata("nullableWhen.kt")
public void testNullableWhen() throws Exception {