[Wasm] Fix generation optimised when expression with Nothing type
Fixed #KT-62147
This commit is contained in:
+6
@@ -37471,6 +37471,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
Generated
+6
@@ -37471,6 +37471,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
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 {
|
||||
|
||||
+6
@@ -37471,6 +37471,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+6
@@ -37471,6 +37471,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user