[JS IR] Add test with fun interface call inside lambda

^KT-44433 fixed
This commit is contained in:
Ilya Goncharov
2021-01-25 13:41:50 +03:00
parent d6e74b9620
commit de3678a805
8 changed files with 61 additions and 0 deletions
@@ -0,0 +1,23 @@
// 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
}