X-Git-Url: http://nitlanguage.org diff --git a/tests/base_eq_null_notnull.nit b/tests/base_eq_null_notnull.nit index 67af307..b59ffa0 100644 --- a/tests/base_eq_null_notnull.nit +++ b/tests/base_eq_null_notnull.nit @@ -16,14 +16,13 @@ import end -class Object - meth ==(o: nullable Object): Bool do return self is o - meth !=(o: nullable Object): Bool do return not (self == o) - meth output is intern +interface Object + 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 - redef meth output is intern + fun output is intern end class A