JS: translate when to JsSwitch when possible
See KT-21160
This commit is contained in:
@@ -20747,6 +20747,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("switchOptimizationWithGap.kt")
|
||||
public void testSwitchOptimizationWithGap() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/switchOptimizationWithGap.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("typeDisjunction.kt")
|
||||
public void testTypeDisjunction() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/typeDisjunction.kt");
|
||||
|
||||
Reference in New Issue
Block a user