Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / error_expr_not_ok.nit
index 0f3063d..0e90f64 100644 (file)
@@ -16,8 +16,8 @@
 
 
 class A
-       var _x: Object = fail
-       var _i: Int = 1
+       var x: Object = fail
+       var i: Int = 1
        fun y do fail
        fun z: Object do return fail
        fun t do
@@ -83,9 +83,9 @@ trash(fail == fail) # no rtype
 trash(fail != 1) # no rtype
 trash(1 != fail)
 trash(fail != fail) # no rtype
-trash(fail is 1)
-trash(1 is fail)
-trash(fail is fail)
+trash(fail.is_same_instance(1))
+trash(1.is_same_instance(fail))
+trash(fail.is_same_instance(fail))
 trash(fail < 1) # no rtype
 trash(1 < fail)
 trash(fail < fail) # no rtype