Files
kotlin/compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithImplicitReceiver.kt
Mark Punzalan 409d99a52a Add ForLoopsLowering to JVM phases.
Also deleted StepHandler. Since the HeaderInfo.needLastCalculation is
only set to true for handling step progressions, deleted that property
and all associated logic around it.
2019-04-04 09:07:19 +02:00

14 lines
198 B
Kotlin
Vendored

fun Int.digitsUpto(end: Int): Int {
var sum = 0
for (i in rangeTo(end)) {
sum = sum*10 + i
}
return sum
}
// 0 iterator
// 0 getStart
// 0 getEnd
// 0 getFirst
// 0 getLast