Files
kotlin-fork/compiler/testData/ir/irText/expressions/badBreakContinue.kt
T
2021-03-12 18:47:34 +03:00

28 lines
362 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// !IGNORE_ERRORS
fun test1() {
break
continue
}
fun test2() {
L1@ while (true) {
break@ERROR
continue@ERROR
}
}
fun test3() {
L1@ while (true) {
val lambda = {
break@L1
continue@L1
}
}
}
fun test4() {
while (break) {}
while (continue) {}
}