[IR BE] Fix SharedVariableLowering
* make it able to detect shared vars under any declaration kind, not only IrFunction * Add & update tests
This commit is contained in:
+5
@@ -13585,6 +13585,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2663_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2663_3.kt")
|
||||
public void testKt2663_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2663_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2675.kt")
|
||||
public void testKt2675() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2675.kt");
|
||||
|
||||
+5
@@ -14645,6 +14645,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2663_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2663_3.kt")
|
||||
public void testKt2663_3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2663_3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2675.kt")
|
||||
public void testKt2675() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/kt2675.kt");
|
||||
|
||||
Reference in New Issue
Block a user