Files
kotlin-fork/compiler/testData/codegen/box/syntheticAccessors/kt21258_simple.kt
T
2018-06-28 12:26:41 +02:00

14 lines
258 B
Kotlin
Vendored

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