X-Git-Url: http://nitlanguage.org diff --git a/tests/test_variance_attr.nit b/tests/test_variance_attr.nit index f7a25e1..6717b8c 100644 --- a/tests/test_variance_attr.nit +++ b/tests/test_variance_attr.nit @@ -15,19 +15,19 @@ # 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 -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