Files
kotlin-fork/idea/testData/quickfix/nullables/unsafeInfixCall/unsafeInfixCall.kt
T
Mark Punzalan 6de1000818 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.
2021-06-03 20:18:01 +03:00

4 lines
102 B
Kotlin
Vendored

// "Replace with safe (?.) call" "true"
fun test(a : Int?) : Int? {
return a <caret>compareTo 6;
}