[K/N] Disable scope initialization on constant access

^KT-57098
This commit is contained in:
Pavel Kunyavskiy
2023-03-10 15:30:48 +01:00
committed by Space Team
parent e6297f92fa
commit 62fb3df7f0
18 changed files with 98 additions and 8 deletions
@@ -5369,6 +5369,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/constants/divisionByZero.kt");
}
@Test
@TestMetadata("doNotTriggerInit.kt")
public void testDoNotTriggerInit() throws Exception {
runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
@@ -5429,6 +5429,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/constants/divisionByZero.kt");
}
@Test
@TestMetadata("doNotTriggerInit.kt")
public void testDoNotTriggerInit() throws Exception {
runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
@@ -5429,6 +5429,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/constants/divisionByZero.kt");
}
@Test
@TestMetadata("doNotTriggerInit.kt")
public void testDoNotTriggerInit() throws Exception {
runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {
@@ -5429,6 +5429,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/constants/divisionByZero.kt");
}
@Test
@TestMetadata("doNotTriggerInit.kt")
public void testDoNotTriggerInit() throws Exception {
runTest("compiler/testData/codegen/box/constants/doNotTriggerInit.kt");
}
@Test
@TestMetadata("float.kt")
public void testFloat() throws Exception {