Files
kotlin-fork/compiler/testData/codegen/box/labels/propertyAccessorFunctionLiteral.kt
T
2019-11-19 11:00:09 +03:00

15 lines
228 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: 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"
}