Files
kotlin-fork/compiler/testData/codegen/box/properties/companionFieldInsideLambda.kt
T
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

8 lines
127 B
Kotlin
Vendored

class My {
companion object {
val my: String = "O"
get() = { field }() + "K"
}
}
fun box() = My.my