tests: prepare for new constructors
[nit.git] / tests / base_attr_nullable.nit
index 1d0ddab..ae29324 100644 (file)
@@ -18,7 +18,7 @@ import end
 
 interface Object
 end
-
+enum Bool end
 enum Int
        fun output is intern
        fun +(o: Int): Int is intern
@@ -31,8 +31,8 @@ class Integer
 end
 
 class Foo
-       var a1: Integer
-       var a2: Integer
+       var a1: Integer is noinit
+       var a2: Integer is noinit
        fun run
        do
                _a1.output
@@ -58,7 +58,7 @@ end
 
 class Bar
        super Foo
-       var a3: Integer
+       var a3: Integer is noinit
        redef fun run
        do
                _a1.output
@@ -68,7 +68,7 @@ class Bar
 
        init
        do
-               nop
+               if false then super # no auto super init call
                #alt3#run
                _a1 = new Integer(10)
                #alt4#run_other(self)