[PSI2IR] Do not generate property reference setter if inaccessible.

Fixes KT-45064.
This commit is contained in:
Mads Ager
2021-02-22 14:22:10 +01:00
committed by Alexander Udalov
parent d44799fa78
commit 8852323a76
10 changed files with 64 additions and 5 deletions
@@ -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
}