Files
kotlin-fork/compiler/testData/codegen/bytecodeText/forLoop/primitiveRange.kt
T
Mark Punzalan 2cfd776092 ForLoopsLowering: Assume step == 1 for *Range (e.g., IntRange) and
handle accordingly (e.g., do not read `step` property).
2020-07-29 20:44:51 +02:00

11 lines
128 B
Kotlin
Vendored

fun f(r: IntRange) {
for (i in r) {
}
}
// 0 iterator
// 0 getStart
// 0 getEnd
// 1 getFirst
// 1 getLast
// 0 getStep