Files
kotlin/compiler/testData/codegen/box/arrays/iteratorLongArrayNextLong.kt
2016-11-09 21:41:12 +03:00

14 lines
293 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box(): String {
val a = LongArray(5)
val x = a.iterator()
var i = 0
while (x.hasNext()) {
if (a[i] != x.nextLong()) return "Fail $i"
i++
}
return "OK"
}