nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib: add `upstream.tryit` to packages that have a online service
[nit.git]
/
tests
/
base_init_inherit.nit
diff --git
a/tests/base_init_inherit.nit
b/tests/base_init_inherit.nit
index
b6738e7
..
9c608b3
100644
(file)
--- a/
tests/base_init_inherit.nit
+++ b/
tests/base_init_inherit.nit
@@
-20,7
+20,7
@@
class A
end
class B
end
class B
-special A
+ super A
init cb
do
'B'.output
init cb
do
'B'.output
@@
-37,7
+37,7
@@
special A
end
class C
end
class C
-special B
+ super B
init cc
do
'C'.output
init cc
do
'C'.output
@@
-54,7
+54,7
@@
special B
end
class M
end
class M
-special A
+ super A
redef fun foo
do
'm'.output
redef fun foo
do
'm'.output
@@
-63,8
+63,8
@@
special A
end
class N
end
class N
-special B
-special M
+ super B
+ super M
redef fun foo
do
'n'.output
redef fun foo
do
'n'.output
@@
-73,8
+73,8
@@
special M
end
class O
end
class O
-special N
-special C
+ super N
+ super C
init co
do
'O'.output
init co
do
'O'.output