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
@@ -4,7 +4,7 @@ fun <T : CharSequence> foo(x: Array<Any>, block: (T, Int) -> Int) {
@Suppress("UNCHECKED_CAST") r = block(x[0] as T, "" as Int)
// to prevent unused assignment diagnostic for the above statement
r.<!INAPPLICABLE_CANDIDATE!>hashCode<!>()
r.hashCode()
var i = 1