// TARGET_BACKEND: JS // ISSUE: KT-57988 // FIR_DUMP inline fun jso(): T = js("({})") inline fun jso(block: T.() -> Unit): T = jso().apply(block) external interface Z { var a: dynamic } fun foo() { jso().apply { a = jso { this[foo.bar] } } } fun box() = "OK"