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

14 lines
253 B
Kotlin
Vendored

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