FIR: Report ARGUMENT_TYPE_MISMATCH instead of TYPE_MISMATCH for arguments

This commit is contained in:
Denis.Zharkov
2021-05-19 18:53:03 +03:00
committed by teamcityserver
parent db500fab94
commit a801eccf66
8 changed files with 24 additions and 24 deletions
@@ -12,5 +12,5 @@ fun test(bal: Array<Int>) {
val e: Unit = run { bar += 4 }
val f: Int = <!INITIALIZER_TYPE_MISMATCH!>run <!TYPE_MISMATCH!>{ bar += 4 }<!><!>
val f: Int = <!INITIALIZER_TYPE_MISMATCH!>run <!ARGUMENT_TYPE_MISMATCH!>{ bar += 4 }<!><!>
}