ff7072830f
#KT-57961 Fixed
7 lines
177 B
Kotlin
Vendored
7 lines
177 B
Kotlin
Vendored
// TARGET_BACKEND: JS
|
|
|
|
fun box(): String {
|
|
val foo = js("{ bar: function(x, y) { return y(x) } }")
|
|
val bar = js("{ baz: 'OK' }")
|
|
return foo.bar(bar) { x -> x.baz }
|
|
} |