Files
kotlin-fork/idea/testData/checker/BreakContinue.kt
T
2015-03-12 17:11:43 +03:00

28 lines
782 B
Kotlin

class C {
fun f (<warning>a</warning> : Boolean, <warning>b</warning> : Boolean) {
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
<error>break@f</error>
break
break@b
<error>break@a</error>
}</error>)
<error>continue</error>
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
<error>continue@f</error>
continue
continue@b
<error>continue@a</error>
}</error>)
<error>break</error>
<error>continue@f</error>
<error>break@f</error>
}
}