nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add engine `nitg-sg` for --semi-global
[nit.git]
/
tests
/
test_variance_attr.nit
diff --git
a/tests/test_variance_attr.nit
b/tests/test_variance_attr.nit
index
f7a25e1
..
6717b8c
100644
(file)
--- a/
tests/test_variance_attr.nit
+++ b/
tests/test_variance_attr.nit
@@
-15,19
+15,19
@@
# limitations under the License.
class A
# limitations under the License.
class A
- attr _foo: Object
- attr _bar: A
- attr _baz: Int
- redef meth output do 'A'.output end
+ var _foo: nullable Object
+ var _bar: nullable A
+ var _baz: nullable Int
+ redef fun output do 'A'.output end
init do end
end
class B
init do end
end
class B
-special A
- redef attr _foo: Int
- redef attr _bar: B
- redef meth output do 'B'.output end
+ super A
+ redef var _foo: nullable Int
+ redef var _bar: nullable B
+ redef fun output do 'B'.output end
init do end
end
init do end
end