Files
kotlin-fork/compiler/testData/codegen/box/syntheticAccessors/kt21258_simple.kt
T
Dmitry Petrov 17b4d4a973 Differentiate accessors by FieldAccessorKind
Otherwise accessors for backing fields (as in '{ field }') clash with
accessors for properties (as in '{ prop }').

 #KT-21258 Fixed Target versions 1.2.30
2017-12-18 16:15:52 +03:00

13 lines
232 B
Kotlin
Vendored

class Foo {
private val fld: String = "O"
get() = { field }() + "K"
val indirectFldGetter: () -> String = { fld }
fun simpleFldGetter(): String {
return fld
}
}
fun box() = Foo().simpleFldGetter()