Files
kotlin/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInExpr.kt
2018-07-17 20:18:29 +03:00

9 lines
158 B
Kotlin
Vendored

fun test(str: String): String {
var s = ""
for (i in 1..3) {
s += if (i<2) str else break
}
return s
}
fun box(): String = test("OK")