Replace some FIR syntax errors with more proper diagnostics

This commit is contained in:
Mikhail Glukhikh
2020-03-24 19:33:34 +03:00
parent 2f63c8a46a
commit b27152f903
53 changed files with 339 additions and 320 deletions
@@ -13,11 +13,11 @@ fun box() : Boolean {
var c = A()
val d = c;
c %= A();
return (c != d) && (c.p = "yeah")
return (c != d) && <!EXPRESSION_REQUIRED!>(c.p = "yeah")<!>
}
fun box2() : Boolean {
var c = A()
return (c.p = "yeah") && true
return <!EXPRESSION_REQUIRED!>(c.p = "yeah")<!> && true
}