Resolve parenthesized element as expression

This commit is contained in:
Stanislav Erokhin
2015-02-03 21:51:21 +03:00
parent 3b92cab9e0
commit a33450395c
12 changed files with 26 additions and 43 deletions
+6 -6
View File
@@ -1,23 +1,23 @@
class C {
fun f (<warning>a</warning> : Boolean, <warning>b</warning> : Boolean) {
@b (while (true)
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
<error>break@f</error>
break
<warning>break@b</warning>
break@b
<error>break@a</error>
})
}</error>)
<error>continue</error>
@b (while (true)
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
<error>continue@f</error>
continue
<warning>continue@b</warning>
continue@b
<error>continue@a</error>
})
}</error>)
<error>break</error>