mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
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
8 lines
178 B
Kotlin
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"
|
|
}
|