Files
kotlin/compiler/testData/codegen/box/properties/classFieldInsideNested.kt
Mikhail Glukhikh 4b6cb3ebce A new kind of synthetic accessors for backing fields, if accessed inside lambda / object literal / local class #KT-9657 Fixed
A set of tests provided
Also #KT-4867 Fixed
Also #KT-8750 Fixed
Slight codegen refactoring
2015-10-26 16:37:32 +03:00

14 lines
229 B
Kotlin
Vendored

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