17b4d4a973
Otherwise accessors for backing fields (as in '{ field }') clash with
accessors for properties (as in '{ prop }').
#KT-21258 Fixed Target versions 1.2.30
13 lines
232 B
Kotlin
Vendored
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()
|