mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
339 B
Kotlin
Vendored
16 lines
339 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
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"
|
|
}
|