Multiple fixes of JS source maps
- elvis expression with complex RHS - destructuring declarations - decomposition of `var` statement (for example, in case of inline destructuring functions) - `is` LHS &&/|| inline fun RHS - argument assignment to temporary var on inline call site - assignment of `next()` result to temporary var in `for` expression - rethrow statement in exception handler
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
var log = ""
|
||||
|
||||
fun foo() {
|
||||
for (
|
||||
(
|
||||
q,
|
||||
w
|
||||
)
|
||||
in listOf(Pair("1", "2"))
|
||||
) {
|
||||
log += q
|
||||
log += w
|
||||
}
|
||||
|
||||
bar {
|
||||
(
|
||||
q,
|
||||
w
|
||||
) ->
|
||||
log += q
|
||||
log += w
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(f: (Pair<String, String>) -> Unit) {
|
||||
f(Pair("w", "e"))
|
||||
}
|
||||
|
||||
|
||||
// LINES: 22 16 16 17 18 20 20 21 21 23 9 9 9 9 4 9 9 9 5 5 6 7 11 11 12 12 15 15 27 26 26 * 1 * 1
|
||||
Reference in New Issue
Block a user