FIR checker: report UNSAFE_CALL for overloaded function calls
Previously if an unsafe call is to an overloaded function, FIR checkers report NONE_APPLICABLE. This change instead report them as UNSAFE_CALL or its variants.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
92df1f575a
commit
454ae3b17a
Vendored
+2
-2
@@ -2,7 +2,7 @@ fun test() {
|
||||
val out : Int? = null
|
||||
val x : Nothing? = null
|
||||
if (out != x)
|
||||
out.<!NONE_APPLICABLE!>plus<!>(1)
|
||||
out<!UNSAFE_CALL!>.<!>plus(1)
|
||||
if (out == x) return
|
||||
out.<!NONE_APPLICABLE!>plus<!>(1)
|
||||
out<!UNSAFE_CALL!>.<!>plus(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user