nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: use `ASuperExpr::mpropdef` instead of asking the frame or visitors
[nit.git]
/
tests
/
error_expr_not_ok.nit
diff --git
a/tests/error_expr_not_ok.nit
b/tests/error_expr_not_ok.nit
index
82c0d5a
..
0b25f5c
100644
(file)
--- a/
tests/error_expr_not_ok.nit
+++ b/
tests/error_expr_not_ok.nit
@@
-35,7
+35,7
@@
fun trash(x: A) do end
#alt4#var fail: Object = 5
#alt5#var fail: Object = 5
#alt5#fail = fail2(5)
#alt4#var fail: Object = 5
#alt5#var fail: Object = 5
#alt5#fail = fail2(5)
-
+#alt6#var fail = null
var ok = 5
ok.fail
var nok: Int = fail
var ok = 5
ok.fail
var nok: Int = fail
@@
-67,7
+67,7
@@
while fail do trash(0)
while true do fail
for i in fail do trash(0) # no rtype (hum...)
while true do fail
for i in fail do trash(0) # no rtype (hum...)
-for i in [0..1] do fail
+for j in [0..1] do fail
assert fail
trash(once fail) # no rtype
trash(fail or true)
assert fail
trash(once fail) # no rtype
trash(fail or true)
@@
-83,9
+83,9
@@
trash(fail == fail) # no rtype
trash(fail != 1) # no rtype
trash(1 != fail)
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
trash(fail < 1) # no rtype
trash(1 < fail)
trash(fail < fail) # no rtype