lib: Array::== do not return false if the dynamic types of the arrays differ
[nit.git] / lib / standard / collection / array.nit
index f9ed504..4def87b 100644 (file)
@@ -141,7 +141,7 @@ abstract class AbstractArrayRead[E]
        # Two arrays are equals if they have the same items in the same order.
        redef fun ==(o)
        do
-               if not o isa AbstractArray[E] or o is null then return false
+               if not o isa AbstractArray[nullable Object] or o is null then return false
                var l = length
                if o.length != l then return false
                var i = 0