update NOTICE and LICENSE
[nit.git] / tests / base_init_inherit5.nit
index e833b51..ef894f9 100644 (file)
@@ -7,7 +7,7 @@ class A
                a.output
        end
 
-       meth foo
+       fun foo
        do
                'a'.output
                '\n'.output
@@ -15,7 +15,7 @@ class A
 end
 
 class B
-special A
+       super A
        init cb(a, b: Char)
        do
                'B'.output
@@ -25,7 +25,7 @@ special A
                '}'.output
        end
 
-       redef meth foo
+       redef fun foo
        do
                'b'.output
                super
@@ -33,7 +33,7 @@ special A
 end
 
 class C
-special B
+       super B
        init cc(a,b,c: Char)
        do
                'C'.output
@@ -43,7 +43,7 @@ special B
                '}'.output
        end
 
-       redef meth foo
+       redef fun foo
        do
                'c'.output
                super
@@ -51,8 +51,8 @@ special B
 end
 
 class M
-special A
-       redef meth foo
+       super A
+       redef fun foo
        do
                'm'.output
                super
@@ -60,9 +60,9 @@ special A
 end
 
 class N
-special B
-special M
-       redef meth foo
+       super B
+       super M
+       redef fun foo
        do
                'n'.output
                super
@@ -70,8 +70,8 @@ special M
 end
 
 class O
-special N
-special C
+       super N
+       super C
        init co(a,b,c,o: Char)
        do
                'O'.output
@@ -80,7 +80,7 @@ special C
                cc(a,b,c)
                '}'.output
        end
-       redef meth foo
+       redef fun foo
        do
                'o'.output
                super