[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user