Files
kotlin-fork/compiler/testData/ir/irText/expressions/for.kt
T
2023-03-22 15:18:17 +00:00

25 lines
378 B
Kotlin
Vendored

// WITH_STDLIB
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
fun testEmpty(ss: List<String>) {
for (s in ss);
}
fun testIterable(ss: List<String>) {
for (s in ss) {
println(s)
}
}
fun testDestructuring(pp: List<Pair<Int, String>>) {
for ((i, s) in pp) {
println(i)
println(s)
}
}
fun testRange() {
for (i in 1..10);
}