[JS IR] Initialize enum fields before accessing them in companion object

see https://youtrack.jetbrains.com/issue/KT-43901
This commit is contained in:
Shagen Ogandzhanian
2020-12-18 01:54:01 +01:00
parent 3eb0745b58
commit 4f96f9d6a1
11 changed files with 92 additions and 14 deletions
@@ -11090,6 +11090,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/enum/classForEnumEntry.kt");
}
@TestMetadata("companionAccessingEnumValue.kt")
public void testCompanionAccessingEnumValue() throws Exception {
runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt");
}
@TestMetadata("companionObjectInEnum.kt")
public void testCompanionObjectInEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/companionObjectInEnum.kt");