fix(KT-50040): remove the corresponding symbol from top-level accessors.
This commit is contained in:
-1
@@ -59,7 +59,6 @@ class PrivateMembersLowering(val context: JsIrBackendContext) : DeclarationTrans
|
|||||||
visibility = newVisibility
|
visibility = newVisibility
|
||||||
}.also {
|
}.also {
|
||||||
it.parent = function.parent
|
it.parent = function.parent
|
||||||
it.correspondingPropertySymbol = function.correspondingPropertySymbol
|
|
||||||
}
|
}
|
||||||
|
|
||||||
staticFunction.typeParameters += function.typeParameters.map { it.deepCopyWithSymbols(staticFunction) }
|
staticFunction.typeParameters += function.typeParameters.map { it.deepCopyWithSymbols(staticFunction) }
|
||||||
|
|||||||
@@ -6256,6 +6256,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
|||||||
runTest("js/js.translator/testData/box/jsExport/jsExportInClass.kt");
|
runTest("js/js.translator/testData/box/jsExport/jsExportInClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("privatePropertyAccessFromMethod.kt")
|
||||||
|
public void testPrivatePropertyAccessFromMethod() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/jsExport/privatePropertyAccessFromMethod.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("recursiveExport.kt")
|
@TestMetadata("recursiveExport.kt")
|
||||||
public void testRecursiveExport() throws Exception {
|
public void testRecursiveExport() throws Exception {
|
||||||
|
|||||||
+6
@@ -6640,6 +6640,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
|||||||
runTest("js/js.translator/testData/box/jsExport/jsExportInClass.kt");
|
runTest("js/js.translator/testData/box/jsExport/jsExportInClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("privatePropertyAccessFromMethod.kt")
|
||||||
|
public void testPrivatePropertyAccessFromMethod() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/jsExport/privatePropertyAccessFromMethod.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("recursiveExport.kt")
|
@TestMetadata("recursiveExport.kt")
|
||||||
public void testRecursiveExport() throws Exception {
|
public void testRecursiveExport() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
// EXPECTED_REACHABLE_NODES: 1286
|
||||||
|
// TARGET_BACKENDS=JS_IR
|
||||||
|
|
||||||
|
package foo
|
||||||
|
|
||||||
|
@JsExport
|
||||||
|
object A {
|
||||||
|
private val foo: Int
|
||||||
|
get() = 23
|
||||||
|
|
||||||
|
fun bar(): Int {
|
||||||
|
return foo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
var result = A.bar()
|
||||||
|
if (result != 23) return "failed: ${result}"
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user