nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: tests.sh compares results with expected buggy results
[nit.git]
/
tests
/
rterror_deep.nit
diff --git
a/tests/rterror_deep.nit
b/tests/rterror_deep.nit
index
bb9e93e
..
e44b923
100644
(file)
--- a/
tests/rterror_deep.nit
+++ b/
tests/rterror_deep.nit
@@
-17,7
+17,7
@@
import kernel
class A
import kernel
class A
- meth foo(i: Int)
+ fun foo(i: Int)
do
i.output
if i == 1 then
do
i.output
if i == 1 then
@@
-30,7
+30,7
@@
class A
end
end
end
end
- meth bar(i: Int)
+ fun bar(i: Int)
do
foo(i/2)
end
do
foo(i/2)
end
@@
-40,7
+40,7
@@
end
class B
special A
class B
special A
- redef meth foo(i: Int)
+ redef fun foo(i: Int)
do
if i == 1 then
var a: A
do
if i == 1 then
var a: A
@@
-52,7
+52,7
@@
special A
init do end
end
init do end
end
-meth baz(a: A, i: Int)
+fun baz(a: A, i: Int)
do
a.foo(i+3)
end
do
a.foo(i+3)
end