Tests for qualified 'this', 'break' and 'continue'

This commit is contained in:
Andrey Breslav
2011-04-01 15:57:59 +04:00
parent 15db4c5ad4
commit 76dc0376e5
6 changed files with 54 additions and 8 deletions
+28
View File
@@ -0,0 +1,28 @@
class C {
fun f (a : Boolean, b : Boolean) {
@b (while (true)
@a {
<error>break@f</error>
break
break@b
<error>break@a</error>
})
<error>continue</error>
@b (while (true)
@a {
<error>continue@f</error>
continue
continue@b
<error>continue@a</error>
})
<error>break</error>
<error>continue@f</error>
<error>break@f</error>
}
}