Files
kotlin-fork/js/js.translator/testData/lineNumbers/for.kt
T
Roman Artemev 46b98a1e98 [JS BE] Make sourceMap generation more precise
- 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
2019-07-24 18:56:40 +03:00

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