This is rather a hypothetical question, but let's say I'd like to change the behaviour of + (or any other arithmetic operator) on Int within a scope, something like this (I know it is something crazy and is something I'd try to avoid in general, but I find it interesting):
object MySillyStuff extends App { def +(a: Int, b: Int) = a*b; println(1+2) } Is that possible this way, or I'm only able to overload operators through implicit conversions with a new type? (I.e., I have to explicitly create 1 as a member of that new type and use implicit conversion of 2 for that specific type).