de3678a805
^KT-44433 fixed
23 lines
288 B
Kotlin
Vendored
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
|
|
} |