infix
modifier is redundant for symbol-like methods SC-R1089infix
modifier is a new modifier introduced in Scala 3 that can be applied to methods.
This allows you to use the method as an infix operation. However, symbol-like methods are by default allowed in infix operations and do not require this modifier.
Since this makes the modifier redundant, it is recommended that you drop the said modifier for such methods.
infix def *(other: T): T = {
// ...
}
// `targetName` annotation is appropriate here, however.
def *(other: T): T = {
// ...
}