Files
kotlin-fork/compiler/testData/codegen/box/properties/classPrivateArtificialFieldInsideNested.kt
T
2020-03-11 16:01:57 +03:00

15 lines
249 B
Kotlin
Vendored

abstract class Your {
abstract val your: String
fun foo() = your
}
class My {
private val back = "O"
val my: String
get() = object : Your() {
override val your = back
}.foo() + "K"
}
fun box() = My().my