mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
12 lines
227 B
Kotlin
Vendored
12 lines
227 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun box(): String {
|
|
val a = ByteArray(5)
|
|
val x = a.iterator()
|
|
var i = 0
|
|
while (x.hasNext()) {
|
|
if (a[i] != x.nextByte()) return "Fail $i"
|
|
i++
|
|
}
|
|
return "OK"
|
|
}
|