syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / base_attr_nullable_int.nit
index 62e3679..d71916e 100644 (file)
@@ -20,20 +20,20 @@ interface Object
 end
 
 universal Int
-       meth output is intern
-       meth +(o: Int): Int is intern
+       fun output is intern
+       fun +(o: Int): Int is intern
 end
 
 class Foo
-       attr _a1: Int
-       readable attr _a2: Int
-       meth run
+       var _a1: Int
+       readable var _a2: Int
+       fun run
        do
                _a1.output
                a2.output
        end
 
-       meth run_other(o: Foo)
+       fun run_other(o: Foo)
        do
                o._a1.output
                o._a2.output
@@ -52,8 +52,8 @@ end
 
 class Bar
 special Foo
-       attr _a3: Int
-       redef meth run
+       var _a3: Int
+       redef fun run
        do
                _a1.output
                _a2.output