update NOTICE and LICENSE
[nit.git] / tests / base_primitive.nit
index 396f0d2..3b0df84 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
@@ -44,8 +44,8 @@ class A
 end
 
 class B
-special A
-       redef meth bar(i: Int)
+       super A
+       redef fun bar(i: Int)
        do
                (i*100).output
        end