Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_attr_nullable_int.nit
index 8e10a92..03c7d88 100644 (file)
@@ -18,19 +18,19 @@ import end
 
 interface Object
 end
-
+enum Bool end
 enum Int
        fun output is intern
        fun +(o: Int): Int is intern
 end
 
 class Foo
-       var _a1: Int
-       readable var _a2: Int
+       var a1: Int is noinit
+       var a2: Int is noinit
        fun run
        do
                _a1.output
-               a2.output
+               _a2.output
        end
 
        fun run_other(o: Foo)
@@ -52,7 +52,7 @@ end
 
 class Bar
        super Foo
-       var _a3: Int
+       var a3: Int is noinit
        redef fun run
        do
                _a1.output
@@ -62,7 +62,7 @@ class Bar
 
        init
        do
-               nop
+               if false then super # no auto super init call
                #alt3#run
                _a1 = 10
                #alt4#run_other(self)