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
@@ -11,7 +11,7 @@ fun test(a: Any) {
a foo"asd${a}sfsa"
a foo"""sdf"""
a foo'd'
a foo''
a foo<!ILLEGAL_CONST_EXPRESSION!>''<!>
a foo""foo a
a foo"asd"foo a
@@ -19,17 +19,17 @@ fun test(a: Any) {
a foo"asd${a}sfsa"foo a
a foo"""sdf"""foo a
a foo'd'foo a
a foo''foo a
a foo<!ILLEGAL_CONST_EXPRESSION!>''<!>foo a
a in"foo"
a in"""foo"""
a in's'
a in''
a in<!ILLEGAL_CONST_EXPRESSION!>''<!>
a !in"foo"
a !in"""foo"""
a !in's'
a !in''
a !in<!ILLEGAL_CONST_EXPRESSION!>''<!>
if("s"is Any) {}
if("s"is Any) {}