Files
kotlin-fork/compiler/testData/codegen/box/js/trailingLambdaOnDynamic.kt
T
2023-04-18 13:43:45 +00:00

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 }
}