Files
kotlin-fork/compiler/testData/codegen/box/funInterface/funInterfaceCallInLambda.kt
T
2021-10-08 07:24:41 +03:00

22 lines
253 B
Kotlin
Vendored

fun interface Action {
fun run()
}
fun runAction(a: Action) {
a.run()
}
fun builder(c: () -> Unit) {
c()
}
fun box(): String {
var res = "FAIL"
builder {
runAction {
res = "OK"
}
}
return res
}