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:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user