Files
kotlin/compiler/testData/codegen/boxWithStdlib/ranges/forByteProgressionWithIntIncrement.kt
Alexander Udalov 53cc582040 Minor, use incrementType in for-progression codegen
This doesn't fix anything, just makes it easier to figure out values of what
types are used where. Progression increment is of its own type, which may be
different from asmElementType in case of Byte, Char, Short progressions
2013-06-20 22:23:02 +04:00

8 lines
178 B
Kotlin

fun box(): String {
for (element in 5.toByte()..1.toByte() step 255) {
return "Fail: iterating over an empty progression, element: $element"
}
return "OK"
}