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
20 lines
362 B
Kotlin
Vendored
20 lines
362 B
Kotlin
Vendored
fun box() {
|
|
for (x in arrayOf(1, 2, 3)) {
|
|
println(x)
|
|
}
|
|
|
|
for (x in 1..10) {
|
|
println(x)
|
|
}
|
|
|
|
for (x in listOf(1, 2, 3)) {
|
|
println(x)
|
|
}
|
|
|
|
val xs = listOf(1, 2, 3)
|
|
for (x in xs.indices) {
|
|
println(x)
|
|
}
|
|
}
|
|
|
|
// LINES: 1 18 2 2 10 2 2 2 2 2 2 3 3 6 6 6 6 7 7 10 10 10 10 10 10 11 11 14 14 15 15 15 15 16 16 |