X-Git-Url: http://nitlanguage.org diff --git a/tests/base_primitive.nit b/tests/base_primitive.nit index 57ef32c..3b0df84 100644 --- a/tests/base_primitive.nit +++ b/tests/base_primitive.nit @@ -17,25 +17,25 @@ 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,13 +44,13 @@ class A end class B -special A - redef meth bar(i: Int) + super A + redef fun bar(i: Int) do (i*100).output end - redef init do end + init do end end var a = new A