FIR: Report UNSAFE_INFIX_CALL for all infix-style calls, even if the

candidate is not an infix function.

This mirrors FE 1.0 (see
`AbstractTracingStrategy.reportUnsafeCallOnBinaryExpression()`) and
allows consistent handling for quickfixes on infix calls.
This commit is contained in:
Mark Punzalan
2021-05-24 19:06:57 +00:00
committed by teamcityserver
parent ca7649edbb
commit 6de1000818
4 changed files with 7 additions and 13 deletions
@@ -1,6 +1,4 @@
// "Replace with safe (?.) call" "true"
fun test(a : Int?) : Int? {
return a <caret>compareTo 6;
}
/* IGNORE_FIR */
}
@@ -1,6 +1,4 @@
// "Replace with safe (?.) call" "true"
fun test(a : Int?) : Int? {
return a?.compareTo(6);
}
/* IGNORE_FIR */
}