Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
box
/
arrays
/
indicesChar.kt
blob: cb2328e759ca444853d705b9d39a849a133897c7 [
file
]
// WITH_STDLIB
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"
}