343af60cb4
#KT-38597 Fixed
15 lines
511 B
Kotlin
Vendored
15 lines
511 B
Kotlin
Vendored
// "Replace with safe (?.) call" "false"
|
|
// ACTION: Add non-null asserted (!!) call
|
|
// ACTION: Flip '<='
|
|
// ACTION: Enable a trailing comma by default in the formatter
|
|
// ACTION: Replace overloaded operator with function call
|
|
// ACTION: Expand boolean expression to 'if else'
|
|
// ERROR: Operator call corresponds to a dot-qualified call 'w?.x.compareTo(42)' which is not allowed on a nullable receiver 'w?.x'.
|
|
|
|
class Wrapper(val x: Int)
|
|
|
|
fun test(w: Wrapper?) {
|
|
when {
|
|
w?.x <caret><= 42 -> {}
|
|
}
|
|
} |