X-Git-Url: http://nitlanguage.org diff --git a/tests/base_var_type_evolution_null5.nit b/tests/base_var_type_evolution_null5.nit index d3acc6e..11fc8f7 100644 --- a/tests/base_var_type_evolution_null5.nit +++ b/tests/base_var_type_evolution_null5.nit @@ -14,11 +14,11 @@ import end -class Object - fun ==(o: nullable Object): Bool do return self is o - fun !=(o: nullable Object): Bool do return not self is o +interface Object + fun ==(o: nullable Object): Bool do return self.is_same_instance(o) + fun !=(o: nullable Object): Bool do return not self.is_same_instance(o) + fun is_same_instance(other: nullable Object): Bool is intern end - class A end