nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: curl: basic Unix domain socket support
[nit.git]
/
tests
/
base_attr4.nit
diff --git
a/tests/base_attr4.nit
b/tests/base_attr4.nit
index
f7bf6a7
..
1b88711
100644
(file)
--- a/
tests/base_attr4.nit
+++ b/
tests/base_attr4.nit
@@
-24,16
+24,22
@@
end
class B
super A
redef var foo: Int = 20
class B
super A
redef var foo: Int = 20
- var bar: Int redef writable = 30
- redef var baz: Int redef writable = 40
+ var bar: Int = 30 is redef writable
+ redef var baz: Int = 40 is redef writable
end
class C
super B
redef fun foo: Int do return 100
end
class C
super B
redef fun foo: Int do return 100
- redef fun bar=(i: Int) do i.output
+ redef fun bar=(i: Int) do
+ super
+ i.output
+ end
redef fun baz: Int do return 400
redef fun baz: Int do return 400
- redef fun baz=(i: Int) do i.output
+ redef fun baz=(i: Int) do
+ super
+ i.output
+ end
end
var a = new A
end
var a = new A