Files
kotlin-fork/compiler/testData/codegen/box/properties/fieldInsideField.kt
T
2020-03-30 16:57:52 +03:00

13 lines
220 B
Kotlin
Vendored

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