Fix typo in forInArrayWithIndex testdata filenames.

This commit is contained in:
Mark Punzalan
2019-10-28 14:55:57 -07:00
committed by max-kammerer
parent 9066614cb9
commit 7f803e60b6
20 changed files with 170 additions and 170 deletions

View File

@@ -0,0 +1,16 @@
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
val arr = arrayOf("a", "b", "c", "d")
fun box(): String {
val s = StringBuilder()
for ((index, x) in arr.withIndex()) {
s.append("$index:$x;")
}
val ss = s.toString()
return if (ss == "0:a;1:b;2:c;3:d;") "OK" else "fail: '$ss'"
}