Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt3574.kt
T
2018-06-09 19:15:38 +03:00

14 lines
265 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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"
}