nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git]
/
tests
/
base_attr_nullable.nit
diff --git
a/tests/base_attr_nullable.nit
b/tests/base_attr_nullable.nit
index
c8ea25c
..
8961bbb
100644
(file)
--- a/
tests/base_attr_nullable.nit
+++ b/
tests/base_attr_nullable.nit
@@
-20,26
+20,26
@@
interface Object
end
universal Int
end
universal Int
- meth output is intern
- meth +(o: Int): Int is intern
+ fun output is intern
+ fun +(o: Int): Int is intern
end
class Integer
end
class Integer
- readable writable attr _val: Int
+ readable writable var _val: Int
init(val: Int) do _val = val
init(val: Int) do _val = val
- meth output do _val.output
+ fun output do _val.output
end
class Foo
end
class Foo
- attr _a1: Integer
- readable attr _a2: Integer
- meth run
+ var _a1: Integer
+ readable var _a2: Integer
+ fun run
do
_a1.output
a2.output
end
do
_a1.output
a2.output
end
- meth run_other(o: Foo)
+ fun run_other(o: Foo)
do
o._a1.output
o._a2.output
do
o._a1.output
o._a2.output
@@
-58,8
+58,8
@@
end
class Bar
special Foo
class Bar
special Foo
- attr _a3: Integer
- redef meth run
+ var _a3: Integer
+ redef fun run
do
_a1.output
_a2.output
do
_a1.output
_a2.output