Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakInExpr.kt
T
2018-06-09 19:15:38 +03:00

10 lines
183 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
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")