fix(KT-50040): remove the corresponding symbol from top-level accessors.
This commit is contained in:
@@ -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