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
This commit is contained in:
Alexander Udalov
2013-06-20 20:14:52 +04:00
parent 980e409768
commit 53cc582040
4 changed files with 16 additions and 4 deletions
@@ -0,0 +1,7 @@
fun box(): String {
for (element in 5.toByte()..1.toByte() step 255) {
return "Fail: iterating over an empty progression, element: $element"
}
return "OK"
}