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

15 lines
224 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
val Int.getter: Int
get() {
return {
this@getter
}.invoke()
}
fun box(): String {
val i = 1
if (i.getter != 1) return "getter failed"
return "OK"
}