Files
kotlin/compiler/testData/codegen/box/arrays/iteratorLongArray.kt
2019-02-19 09:59:42 +03:00

11 lines
193 B
Kotlin
Vendored

fun box(): String {
val a = LongArray(5)
val x = a.iterator()
var i = 0
while (x.hasNext()) {
if (a[i] != x.next()) return "Fail $i"
i++
}
return "OK"
}