syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / test_variance_attr.nit
index f7a25e1..7ae65d3 100644 (file)
 # 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
+    redef var _foo: nullable Int
+    redef var _bar: nullable B
+    redef fun output do 'B'.output end
 
     init do end
 end