Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_init_super_call2.nit
index f229ddb..0f2988b 100644 (file)
@@ -20,27 +20,30 @@ end
 
 class B1
        super A
-       #alt1#init do super
+       #alt1#init is old_style_init do super
 end
 
 class B2
        super A
-       init do super(3)
+       init is old_style_init do super(3)
 end
 
 class B3
        super A
-       #alt2#init do super(true)
+       #alt2#init is old_style_init do super(true)
 end
 
 class B4
        super A
-       #alt3#init do end
+       #alt3#init is old_style_init do end
 end
 
 class C1
        super A
-       init(j: Int) do
+       init(j: Int)
+       is
+               old_style_init
+       do
                super
                j.output
        end
@@ -48,7 +51,10 @@ end
 
 class D1
        super A
-       init(j) do
+       init(j: Int)
+       is
+               old_style_init
+       do
                super
                j.output
        end
@@ -56,7 +62,10 @@ end
 
 class E1
        super A
-       init(j: Bool) do
+       init(j: Bool)
+       is
+               old_style_init
+       do
                super(8)#alt4#super
                j.output
        end
@@ -64,7 +73,10 @@ end
 
 class C2
        super A
-       init(j: Int) do
+       init(j: Int)
+       is
+               old_style_init
+       do
                super(j)
                j.output
        end
@@ -72,7 +84,10 @@ end
 
 class D2
        super A
-       init(j) do
+       init(j: Int)
+       is
+               old_style_init
+       do
                super(j)
                j.output
        end
@@ -80,7 +95,10 @@ end
 
 class E2
        super A
-       init(j: Bool) do
+       init(j: Bool)
+       is
+               old_style_init
+       do
                super(11)#alt5#super(j)
                j.output
        end
@@ -88,21 +106,32 @@ end
 
 class C3
        super A
-       init(j: Int) do
+       init(j: Int)
+       is
+               old_style_init
+       do
+               super(j)#alt6#
                j.output
        end
 end
 
 class D3
        super A
-       init(j) do
+       init(j: Int)
+       is
+               old_style_init
+       do
+               super(j)#alt6#
                j.output
        end
 end
 
 class E3
        super A
-       init(j: Bool) do
+       init(j: Bool)
+       is
+               old_style_init
+       do
                super(14)#alt6#
                j.output
        end
@@ -110,7 +139,10 @@ end
 
 class F1
        super A
-       init(j: Int, k: Bool) do
+       init(j: Int, k: Bool)
+       is
+               old_style_init
+       do
                super
                j.output
        end
@@ -118,7 +150,11 @@ end
 
 class F2
        super A
-       init(j: Int, k: Bool) do
+       init(j: Int, k: Bool)
+       is
+               old_style_init
+       do
+               super(j)#alt6#
                j.output
        end
 end