class C { operator fun remAssign(other: C) { } } fun test(): C { var n = C() n %= n return n }