[JS IR BE] Fix enum entry initialization

Keep helper fields uninitialized. This way thier initialization
would not depend on field initialization order.
This commit is contained in:
Svyatoslav Kuzmich
2020-03-10 21:39:32 +03:00
parent 04f9a03796
commit f113c22450
4 changed files with 22 additions and 4 deletions
@@ -6804,6 +6804,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/regression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
}
@TestMetadata("enumEntryInitOrder.kt")
public void testEnumEntryInitOrder() throws Exception {
runTest("js/js.translator/testData/box/regression/enumEntryInitOrder.kt");
}
@TestMetadata("kt2470.kt")
public void testKt2470() throws Exception {
runTest("js/js.translator/testData/box/regression/kt2470.kt");
@@ -6859,6 +6859,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/regression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS, true);
}
@TestMetadata("enumEntryInitOrder.kt")
public void testEnumEntryInitOrder() throws Exception {
runTest("js/js.translator/testData/box/regression/enumEntryInitOrder.kt");
}
@TestMetadata("kt2470.kt")
public void testKt2470() throws Exception {
runTest("js/js.translator/testData/box/regression/kt2470.kt");