X-Git-Url: http://nitlanguage.org diff --git a/tests/base_attr_nullable.nit b/tests/base_attr_nullable.nit index 08ad503..ae29324 100644 --- a/tests/base_attr_nullable.nit +++ b/tests/base_attr_nullable.nit @@ -18,21 +18,21 @@ import end interface Object end - +enum Bool end enum Int fun output is intern fun +(o: Int): Int is intern end class Integer - var _val: Int + var val: Int init(val: Int) do _val = val fun output do _val.output 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)