update NOTICE
[nit.git] / tests / base_eq_null_notnull.nit
index ef08d2c..f6d7424 100644 (file)
 import end
 
 class Object
-       fun ==(o: nullable Object): Bool do return self is o
+       fun ==(o: nullable Object): Bool do return self.is_same_instance(o)
        fun !=(o: nullable Object): Bool do return not (self == o)
+       fun is_same_instance(other: nullable Object): Bool is intern
 end
-
 class Bool
        fun output is intern
 end