mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
NB: for-in-until loop is generated as precondition loop, because the corresponding range is right-exclusive (and thus we have no problems with integer overflows).
16 lines
203 B
Kotlin
Vendored
16 lines
203 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun test(): Int {
|
|
var sum = 0
|
|
for (i in 1 until 6) {
|
|
sum = sum * 10 + i
|
|
}
|
|
return sum
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 getStart
|
|
// 0 getEnd
|
|
// 0 getFirst
|
|
// 0 getLast
|
|
// 1 IF |