Files
kotlin-fork/compiler/testData/ir/irText/expressions/for.kt
T
2019-05-23 14:02:12 +03:00

22 lines
324 B
Kotlin
Vendored

// WITH_RUNTIME
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);
}