Files
kotlin-fork/compiler/testData/codegen/box/extensionProperties/accessorForPrivateSetter.kt
T

22 lines
351 B
Kotlin
Vendored

class A {
var result = "Fail"
private var Int.foo: String
get() = result
private set(value) {
result = value
}
fun run(): String {
class O {
fun run() {
42.foo = "OK"
}
}
O().run()
return (-42).foo
}
}
fun box() = A().run()