class Bar { operator fun plusAssign(arg: Bar) {} } fun foo(b: Bar) { var a = Bar() a += b }