IR KT-50258 rewrite enum-based 'when' more carefully
This commit is contained in:
+18
@@ -32756,12 +32756,30 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt15806.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt50258.kt")
|
||||
public void testKt50258() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt50258.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyWhensWithinClass.kt")
|
||||
public void testManyWhensWithinClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedWhenInCondition.kt")
|
||||
public void testNestedWhenInCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedWhenInResult.kt")
|
||||
public void testNestedWhenInResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInResult.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonConstantEnum.kt")
|
||||
public void testNonConstantEnum() throws Exception {
|
||||
|
||||
+18
@@ -32858,12 +32858,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt15806.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt50258.kt")
|
||||
public void testKt50258() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt50258.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyWhensWithinClass.kt")
|
||||
public void testManyWhensWithinClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedWhenInCondition.kt")
|
||||
public void testNestedWhenInCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedWhenInResult.kt")
|
||||
public void testNestedWhenInResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInResult.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonConstantEnum.kt")
|
||||
public void testNonConstantEnum() throws Exception {
|
||||
|
||||
+15
@@ -27522,11 +27522,26 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt15806.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt50258.kt")
|
||||
public void testKt50258() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/kt50258.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("manyWhensWithinClass.kt")
|
||||
public void testManyWhensWithinClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWhenInCondition.kt")
|
||||
public void testNestedWhenInCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedWhenInResult.kt")
|
||||
public void testNestedWhenInResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nestedWhenInResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonConstantEnum.kt")
|
||||
public void testNonConstantEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/enumOptimization/nonConstantEnum.kt");
|
||||
|
||||
Reference in New Issue
Block a user