mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
253 B
Kotlin
Vendored
14 lines
253 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// WITH_RUNTIME
|
|
|
|
fun foo(): List<String>? = listOf("abcde")
|
|
|
|
fun box(): String {
|
|
for (i in 1..3) {
|
|
for (value in foo() ?: continue) {
|
|
if (value != "abcde") return "Fail"
|
|
}
|
|
}
|
|
return "OK"
|
|
}
|