Don't save constant value for non-resolved array expression in K1

#KT-55912 Fixed
This commit is contained in:
Ivan Kylchik
2023-01-23 18:02:19 +01:00
committed by Space Team
parent 8fcea399f9
commit 13cad2a820
15 changed files with 89 additions and 13 deletions
@@ -12913,6 +12913,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("kt55912.kt")
public void testKt55912() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt55912.kt");
}
@Test
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
@@ -13009,6 +13009,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("kt55912.kt")
public void testKt55912() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt55912.kt");
}
@Test
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
@@ -13009,6 +13009,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("kt55912.kt")
public void testKt55912() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt55912.kt");
}
@Test
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
@@ -13009,6 +13009,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("kt55912.kt")
public void testKt55912() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt55912.kt");
}
@Test
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
@@ -11535,6 +11535,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/evaluate"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("kt55912.kt")
public void testKt55912() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt55912.kt");
}
@TestMetadata("kt9443.kt")
public void testKt9443() throws Exception {
runTest("compiler/testData/codegen/box/evaluate/kt9443.kt");