nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Add test_astbuilder to the skip list of nitcg niti nitvm
[nit.git]
/
tests
/
test_inheritance.nit
diff --git
a/tests/test_inheritance.nit
b/tests/test_inheritance.nit
index
d08173f
..
dc9da19
100644
(file)
--- a/
tests/test_inheritance.nit
+++ b/
tests/test_inheritance.nit
@@
-15,34
+15,34
@@
# limitations under the License.
class A
# limitations under the License.
class A
- meth f do print(1) end
- meth g do print(1) end
- meth h do print(1) end
- meth i do print(1) end
+ fun f do print(1) end
+ fun g do print(1) end
+ fun h do print(1) end
+ fun i do print(1) end
init do end
end
class B
init do end
end
class B
-special A
- redef meth g do print(2) end
- redef meth i do print(2) end
+ super A
+ redef fun g do print(2) end
+ redef fun i do print(2) end
init do end
end
class C
init do end
end
class C
-special A
- redef meth h do print(3) end
- redef meth i do print(3) end
+ super A
+ redef fun h do print(3) end
+ redef fun i do print(3) end
init do end
end
class D
init do end
end
class D
-special B
-special C
- redef meth i do print(4) end
+ super B
+ super C
+ redef fun i do print(4) end
init do end
end
init do end
end