Files
kotlin/compiler/testData/codegen/box/controlStructures/continueInForCondition.kt

14 lines
253 B
Kotlin
Vendored

// KJS_WITH_FULL_RUNTIME
// 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"
}