[PSI2IR] Do not generate property reference setter if inaccessible.
Fixes KT-45064.
This commit is contained in:
committed by
Alexander Udalov
parent
d44799fa78
commit
8852323a76
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
|
||||
// WITH_RUNTIME
|
||||
// FILE: b.kt
|
||||
import a.A
|
||||
|
||||
class B {
|
||||
fun getValue() = sequenceOf(A()).map(A::value).first()
|
||||
}
|
||||
|
||||
fun box() = B().getValue()
|
||||
|
||||
// FILE: a.kt
|
||||
package a
|
||||
|
||||
class A {
|
||||
var value: String = "OK"
|
||||
private set
|
||||
}
|
||||
Reference in New Issue
Block a user