[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
+1
-1
@@ -3,7 +3,7 @@ fun bar(x: Int) = x + 1
|
||||
fun foo() {
|
||||
val x: Int? = null
|
||||
|
||||
fun baz() = <!INAPPLICABLE_CANDIDATE!>bar<!>(x)
|
||||
fun baz() = bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
|
||||
fun quux() = if (x != null) bar(x) else baz()
|
||||
fun quuux() = bar(if (x == null) 0 else x)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user