blob: 21fbabd97c3b4e874f67ecabfc089459c671328c [file]
// RUN_PIPELINE_TILL: FRONTEND
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 */