mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
13 lines
228 B
Kotlin
Vendored
13 lines
228 B
Kotlin
Vendored
// 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"
|
|
}
|