As far as I understand, Scala\'s == defines the natural equality of two objects.
==
I expected that Array(0,1,2) == Array(0,1,2) compares the
Array(0,1,2) == Array(0,1,2)
Scala doesn't override Array's equality because it's not possible. One can only override methods when subclassing. Since Array isn't being subclassed (which isn't possible), Scala cannot override its methods.