JVM IR: Handle overloaded values functions in MappedEnumWhenLowering

Fixes KT-46579.
This commit is contained in:
Steven Schäfer
2021-05-12 17:36:15 +02:00
committed by Alexander Udalov
parent 5d30576d28
commit 6aaff9dfb7
12 changed files with 155 additions and 3 deletions
@@ -10703,6 +10703,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/enum/ordinal.kt");
}
@TestMetadata("overloadedEnumValues.kt")
public void testOverloadedEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt");
}
@TestMetadata("refToThis.kt")
public void testRefToThis() throws Exception {
runTest("compiler/testData/codegen/box/enum/refToThis.kt");
@@ -10114,6 +10114,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/enum/ordinal.kt");
}
@TestMetadata("overloadedEnumValues.kt")
public void testOverloadedEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt");
}
@TestMetadata("refToThis.kt")
public void testRefToThis() throws Exception {
runTest("compiler/testData/codegen/box/enum/refToThis.kt");
@@ -10114,6 +10114,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/enum/ordinal.kt");
}
@TestMetadata("overloadedEnumValues.kt")
public void testOverloadedEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt");
}
@TestMetadata("refToThis.kt")
public void testRefToThis() throws Exception {
runTest("compiler/testData/codegen/box/enum/refToThis.kt");
@@ -4962,6 +4962,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/enum/ordinal.kt");
}
@TestMetadata("overloadedEnumValues.kt")
public void testOverloadedEnumValues() throws Exception {
runTest("compiler/testData/codegen/box/enum/overloadedEnumValues.kt");
}
@TestMetadata("refToThis.kt")
public void testRefToThis() throws Exception {
runTest("compiler/testData/codegen/box/enum/refToThis.kt");