nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: comment why !nopar is required in some place
[nit.git]
/
tests
/
base_attr.nit
diff --git
a/tests/base_attr.nit
b/tests/base_attr.nit
index
736d7ff
..
bb60484
100644
(file)
--- a/
tests/base_attr.nit
+++ b/
tests/base_attr.nit
@@
-20,13
+20,13
@@
class Object
end
class Int
end
class Int
- meth output is intern
+ fun output is intern
end
class Foo
end
class Foo
- attr _a1: Int
- attr _a2: Int
- meth run
+ var _a1: Int
+ var _a2: Int
+ fun run
do
_a1.output
_a2.output
do
_a1.output
_a2.output
@@
-41,15
+41,15
@@
end
class Bar
special Foo
class Bar
special Foo
- attr _a3: Int
- redef meth run
+ var _a3: Int
+ redef fun run
do
_a1.output
_a2.output
_a3.output
end
do
_a1.output
_a2.output
_a3.output
end
- redef init
+ init
do
_a1 = 10
_a2 = 20
do
_a1 = 10
_a2 = 20