Files
kotlin-fork/idea/testData/quickfix/replaceInfixOrOperatorCall/augmentedAssignmentNotAvailable.kt.after
T
Mark Punzalan d1531f9cdd FIR: Choose a resolved candidate for augmented assignment when both
assign and operator candidates are unsuccessful.
2021-06-03 20:18:04 +03:00

9 lines
148 B
Plaintext
Vendored

// "Replace with safe (?.) call" "true"
class A {
operator fun plus(other: A) = this
}
fun foo(b: A) {
var a: A? = A()
a = a?.plus(b)
}