JS: fix translation of calls with aliased labeled lambda arguments. Fix KT-14999
This commit is contained in:
committed by
Alexey Andreev
parent
a6fb61f5c3
commit
784fe31053
@@ -0,0 +1,16 @@
|
||||
// See KT-14999
|
||||
|
||||
object Obj {
|
||||
var key = ""
|
||||
var value = ""
|
||||
|
||||
operator fun set(k: String, v: ((String) -> Unit) -> Unit) {
|
||||
key += k
|
||||
v { value += it }
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Obj["O"] = label@{ it("K") }
|
||||
return Obj.key + Obj.value
|
||||
}
|
||||
Reference in New Issue
Block a user