JVM KT-22465 don't generate accessor to private setter in other class
This commit is contained in:
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// FILE: accessorForProtectedPropertyWithPrivateSetterViaSuper.kt
|
||||
import a.A
|
||||
|
||||
class B : A() {
|
||||
fun test() = { -> super.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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user