Files
kotlin-fork/compiler/testData/codegen/box/funInterface/funInterfaceCallInLambda.kt
T
2021-02-03 12:13:53 +03:00

23 lines
288 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
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
}