Files
kotlin/compiler/testData/diagnostics/tests/controlStructures/jumpAcrossFunctionBoundary.kt
2015-04-29 14:03:11 +03:00

18 lines
330 B
Kotlin
Vendored

fun call(f: () -> Unit) = f()
fun f1() {
outer@ while (true) {
call {
<!BREAK_OR_CONTINUE_JUMPS_ACROSS_FUNCTION_BOUNDARY!>break@outer<!>
}
}
}
fun f2() {
do {
fun inner() {
<!BREAK_OR_CONTINUE_JUMPS_ACROSS_FUNCTION_BOUNDARY!>continue<!>
}
} while (true)
}