Files
kotlin/compiler/testData/codegen/box/controlStructures/continueInForCondition.kt
2016-11-21 18:20:33 +03:00

13 lines
228 B
Kotlin
Vendored

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