syntax: 'meth' -> 'fun', 'attr' -> 'var'
[nit.git] / tests / base_primitive.nit
index 57ef32c..8b64c56 100644 (file)
 import kernel
 
 redef class Object
-       meth foo(i: Int)
+       fun foo(i: Int)
        do
                0.output
        end
 end
 
 redef class Int
-       redef meth foo(i: Int)
+       redef fun foo(i: Int)
        do
                (-i).output
        end
 end
 
 class A
-       redef meth foo(i: Int)
+       redef fun foo(i: Int)
        do
                i.output
        end
-       meth bar(i: Int)
+       fun bar(i: Int)
        do
                (i*10).output
        end
@@ -45,12 +45,12 @@ end
 
 class B
 special A
-       redef meth bar(i: Int)
+       redef fun bar(i: Int)
        do
                (i*100).output
        end
 
-       redef init do end
+       init do end
 end
 
 var a = new A