Files
kotlin-fork/backend.native/tests/external/codegen/box/controlStructures/breakContinueInExpressions/breakInExpr.kt
T
2017-03-13 15:31:46 +03:00

9 lines
158 B
Kotlin

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")