mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
13 lines
243 B
Kotlin
13 lines
243 B
Kotlin
import java.util.Arrays
|
|
|
|
fun foo(): List<String>? = Arrays.asList("abcde")
|
|
|
|
fun box(): String {
|
|
for (i in 1..3) {
|
|
for (value in foo() ?: continue) {
|
|
if (value != "abcde") return "Fail"
|
|
}
|
|
}
|
|
return "OK"
|
|
}
|