[FIR2IR] Fix codegen for lambda with dynamic receiver
#KT-57835 Fixed
This commit is contained in:
committed by
Space Team
parent
1c96a87dca
commit
aab1959cc4
@@ -0,0 +1,13 @@
|
||||
// TARGET_BACKEND: JS
|
||||
|
||||
fun jso(
|
||||
block: dynamic.() -> Unit,
|
||||
): dynamic {
|
||||
val o = js("{}")
|
||||
block(o)
|
||||
return o
|
||||
}
|
||||
|
||||
fun box() = jso {
|
||||
bar = "OK"
|
||||
}.bar
|
||||
Reference in New Issue
Block a user