Files
kotlin/compiler/testData/codegen/box/controlStructures/continueInForCondition.kt
2019-11-19 11:00:09 +03:00

15 lines
283 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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"
}