[JS_IR] Enum constructor copy parameters with mapping by index
Previously mapping was by name, and there was clash in case of user parameters named 'name' or 'ordinal' ^KT-39186 fixed
This commit is contained in:
+5
@@ -12495,6 +12495,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/enum/enumCompanionInit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumConstructorParameterClashWithDefaults.kt")
|
||||
public void testEnumConstructorParameterClashWithDefaults() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/enumConstructorParameterClashWithDefaults.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntryMembers.kt")
|
||||
public void testEnumEntryMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/enumEntryMembers.kt");
|
||||
|
||||
Reference in New Issue
Block a user