[JS IR BE] Fix private members lowering
- visit over file instead of class
This commit is contained in:
+5
@@ -6494,6 +6494,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/packagePropertySet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassesWithPrivateMembers.kt")
|
||||
public void testPrivateClassesWithPrivateMembers() throws Exception {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/privateClassesWithPrivateMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privatePropertyAccessFromMethod.kt")
|
||||
public void testPrivatePropertyAccessFromMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/privatePropertyAccessFromMethod.kt");
|
||||
|
||||
+5
@@ -6514,6 +6514,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/packagePropertySet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClassesWithPrivateMembers.kt")
|
||||
public void testPrivateClassesWithPrivateMembers() throws Exception {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/privateClassesWithPrivateMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privatePropertyAccessFromMethod.kt")
|
||||
public void testPrivatePropertyAccessFromMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/propertyAccess/privatePropertyAccessFromMethod.kt");
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1305
|
||||
|
||||
private class A {
|
||||
private val f = "OK"
|
||||
inline fun ii() = f
|
||||
}
|
||||
|
||||
|
||||
private class B {
|
||||
private val a = A()
|
||||
fun foo() = a.ii()
|
||||
}
|
||||
|
||||
fun box() = B().foo()
|
||||
Reference in New Issue
Block a user