nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Functional api
[nit.git]
/
tests
/
base_super_linext.nit
diff --git
a/tests/base_super_linext.nit
b/tests/base_super_linext.nit
index
f4da116
..
ed1d84f
100644
(file)
--- a/
tests/base_super_linext.nit
+++ b/
tests/base_super_linext.nit
@@
-17,27
+17,27
@@
import kernel
class A
import kernel
class A
- meth work do
+ fun work do
foo
'\n'.output
bar.output
'\n'.output
end
foo
'\n'.output
bar.output
'\n'.output
end
- meth foo do 'A'.output
- meth bar: Char do return 'A'
+ fun foo do 'A'.output
+ fun bar: Char do return 'A'
init do end
end
class B
init do end
end
class B
-special A
- redef meth foo
+ super A
+ redef fun foo
do
'B'.output
'['.output
super
']'.output
end
do
'B'.output
'['.output
super
']'.output
end
- redef meth bar
+ redef fun bar
do
super.output
return 'B'
do
super.output
return 'B'
@@
-46,15
+46,15
@@
special A
end
class C
end
class C
-special A
- redef meth foo
+ super A
+ redef fun foo
do
'C'.output
'['.output
super
']'.output
end
do
'C'.output
'['.output
super
']'.output
end
- redef meth bar
+ redef fun bar
do
super.output
return 'C'
do
super.output
return 'C'
@@
-63,16
+63,16
@@
special A
end
class D
end
class D
-special B
-special C
- redef meth foo
+ super B
+ super C
+ redef fun foo
do
'D'.output
'['.output
super
']'.output
end
do
'D'.output
'['.output
super
']'.output
end
- redef meth bar
+ redef fun bar
do
super.output
return 'D'
do
super.output
return 'D'