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
/
module_0.nit
diff --git
a/tests/module_0.nit
b/tests/module_0.nit
index
0c5832c
..
aba5aca
100644
(file)
--- a/
tests/module_0.nit
+++ b/
tests/module_0.nit
@@
-16,24
+16,25
@@
import end
import end
-class Object
- meth output
+interface Object
+ fun output
do
0.output
end
do
0.output
end
- meth print(a: Object)
+ fun print(a: Object)
do
a.output
end
end
class Int
do
a.output
end
end
class Int
- redef meth output is intern
+ redef fun output is intern
end
class Sys
end
class Sys
- meth main
+ fun main
do
do
+ print(0)
end
end
end
end