Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt
T
2016-11-09 21:41:12 +03:00

15 lines
315 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box(): String {
OUTER@while (true) {
var x = ""
try {
do {
x = x + break@OUTER
} while (true)
} finally {
return "OK"
}
}
}