mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
266 B
Kotlin
Vendored
13 lines
266 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
val s = StringBuilder()
|
|
|
|
for ((index, x) in "abcd".withIndex()) {
|
|
s.append("$index:$x;")
|
|
}
|
|
|
|
val ss = s.toString()
|
|
return if (ss == "0:a;1:b;2:c;3:d;") "OK" else "fail: '$ss'"
|
|
} |