blob: d33e0670af80b46baea7e4e69607058214a9d7ba [file]
// RUN_PIPELINE_TILL: FRONTEND
// FIR_IDENTICAL
class A {
operator fun plusAssign(s: String) {}
}
fun test() {
var a: A? = A()
a <!UNSAFE_OPERATOR_CALL!>+=<!> ""
}
class B {
operator fun plus(other: B) = this
}
fun test2() {
var b: B? = B()
b <!UNSAFE_OPERATOR_CALL!>+=<!> B()
}
/* GENERATED_FIR_TAGS: additiveExpression, assignment, classDeclaration, functionDeclaration, localProperty,
nullableType, operator, propertyDeclaration, stringLiteral, thisExpression */