[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)

This commit is contained in:
Ivan Kochurkin
2021-04-06 01:35:30 +03:00
committed by TeamCityServer
parent 4ffab5fe5a
commit ad9b962536
461 changed files with 1239 additions and 1246 deletions
@@ -19,7 +19,7 @@ fun bar(x: String) = x
fun test(x: String?): Any {
val y = My.create()
val z = x ?: y!!
<!INAPPLICABLE_CANDIDATE!>bar<!>(y)
bar(<!ARGUMENT_TYPE_MISMATCH!>y<!>)
// !! / ?. is necessary here, because y!! above may not be executed
y?.hashCode()
y!!.hashCode()