JVM KT-22465 don't generate accessor to private setter in other class

This commit is contained in:
Dmitry Petrov
2020-10-23 14:07:56 +03:00
parent 4d63ecd83c
commit b1629cc5f4
20 changed files with 499 additions and 5 deletions
@@ -0,0 +1,24 @@
// FILE: accessorForProtectedPropertyWithPrivateSetter.kt
import a.A
class B : A() {
fun test() = { -> vo + fk()() }
}
fun box() = B().test()()
// FILE: a.kt
package a
open class A {
protected var vo = "O"
private set
protected var vk = ""
private set
fun fk() = { ->
vk = "K"
vk
}
}