Files
kotlin-fork/compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt
T
Juan Chen aba7706dec [FIR] fix test module set up (this fixes 193 BB tests)
Added creation and initialization of the test module and its dependencies.
When looking at the emptyProgression test,
I found that getProgressionLastElement was not found,
which should be resolved from the dependencies.
2020-03-26 10:30:47 +03:00

10 lines
195 B
Kotlin
Vendored

// 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"
}