[Wasm] Fix generation optimised when expression with Nothing type
Fixed #KT-62147
This commit is contained in:
Generated
+6
@@ -37141,6 +37141,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
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
@@ -37141,6 +37141,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
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