[JS IR] Add test with fun interface call inside lambda
^KT-44433 fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user