46b98a1e98
- Don't produce mapping for closing bracket in case of expressionBody - Map Kt*Function declaration into corresponding js fun declaration - Update test data & add new test
30 lines
480 B
Kotlin
Vendored
30 lines
480 B
Kotlin
Vendored
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: 15 22 16 16 17 18 20 20 21 21 22 22 3 23 9 9 9 9 4 9 9 9 5 5 6 7 11 11 12 12 15 15 25 27 26 26 * 1 * 1 |