Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_var_type_evolution_null_while.nit
index 56eacc1..bd24e7c 100644 (file)
 
 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