Files
kotlin-fork/compiler/testData/ir/irText/regressions/coercionInLoop.kt
T
2016-10-18 09:09:31 +03:00

10 lines
194 B
Kotlin
Vendored

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