nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strings: reimplement to_snake_case with a correct semantic
[nit.git]
/
tests
/
base_attr_def.nit
diff --git
a/tests/base_attr_def.nit
b/tests/base_attr_def.nit
index
c11247e
..
ecab175
100644
(file)
--- a/
tests/base_attr_def.nit
+++ b/
tests/base_attr_def.nit
@@
-16,23
+16,24
@@
import end
import end
-class Object
+interface Object
end
class Int
end
class Int
- meth output is intern
+ fun output is intern
end
class Foo
end
class Foo
- readable writable attr _a1: Int
- readable writable attr _a2: Int
- meth run
+ var a1: Int
+ var a2: Int
+ fun run
do
a1.output
a2.output
end
do
a1.output
a2.output
end
- init
+ init is
+ old_style_init
do
a1 = 1
a2 = 2
do
a1 = 1
a2 = 2
@@
-40,16
+41,17
@@
class Foo
end
class Bar
end
class Bar
-special Foo
- readable writable attr _a3: Int
- redef meth run
+ super Foo
+ var a3: Int
+ redef fun run
do
a1.output
a2.output
a3.output
end
do
a1.output
a2.output
a3.output
end
- init
+ init is
+ old_style_init
do
a1 = 10
a2 = 20
do
a1 = 10
a2 = 20