Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
arrays
/
indicesChar.kt
blob: 89959e1f0c96cc6d189dfde9b268945d64b6f58e [
file
]
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box
():
String
{
val a
=
CharArray
(
5
)
val x
=
a
.
indices
.
iterator
()
while
(
x
.
hasNext
())
{
val i
=
x
.
next
()
if
(
a
[
i
]
!=
0.toChar
())
return
"Fail $i ${a[i]}"
}
return
"OK"
}