mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
14 lines
249 B
Kotlin
Vendored
14 lines
249 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
val str = "abcd"
|
|
var r = ""
|
|
for (c: Char? in str) {
|
|
r = r + c ?: "?"
|
|
}
|
|
if (r != "abcd") throw AssertionError()
|
|
|
|
return "OK"
|
|
} |