Files
kotlin-fork/backend.native/tests/external/codegen/box/controlStructures/kt3574.kt
T
2017-03-13 15:31:46 +03:00

13 lines
240 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun nil() = null
fun list() = java.util.Arrays.asList("1")
fun box(): String {
for (x in nil()?:list()) {
}
return "OK"
}