Files
kotlin/compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt
2018-06-09 19:15:38 +03:00

11 lines
220 B
Kotlin
Vendored

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