update NOTICE and LICENSE
[nit.git] / tests / base_init_inherit2.nit
index 8265995..0ba0516 100644 (file)
@@ -6,7 +6,7 @@ class A
                'A'.output
        end
 
-       meth foo
+       fun foo
        do
                'a'.output
                '\n'.output
@@ -14,7 +14,7 @@ class A
 end
 
 class B
-special A
+       super A
 #alt1# init cb
 #alt1# do
 #alt1#         'B'.output
@@ -31,7 +31,7 @@ special A
 #alt3#         '}'.output
 #alt3# end
 
-       redef meth foo
+       redef fun foo
        do
                'b'.output
                super
@@ -39,7 +39,7 @@ special A
 end
 
 class C
-special A
+       super A
 #alt2# init cc
 #alt2# do
 #alt2#         'C'.output
@@ -56,7 +56,7 @@ special A
 #alt3#         '}'.output
 #alt3# end
 
-       redef meth foo
+       redef fun foo
        do
                'c'.output
                super
@@ -64,8 +64,8 @@ special A
 end
 
 class M
-special C
-       redef meth foo
+       super C
+       redef fun foo
        do
                'm'.output
                super
@@ -73,9 +73,9 @@ special C
 end
 
 class N
-special B
-special M
-       redef meth foo
+       super B
+       super M
+       redef fun foo
        do
                'n'.output
                super