Files
kotlin/compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt
2019-11-19 11:00:09 +03:00

11 lines
225 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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"
}