tests: Add test_astbuilder to the skip list of nitcg niti nitvm
[nit.git] / tests / test_create.nit
index 0ccd49b..0eee185 100644 (file)
 import kernel
 
 redef class Object
-       meth printn(a: Object)
+       fun printn(a: Object)
        do
                a.output
        end
 end
 
 class Toto
-       attr _a: Int
-       redef meth output
+       var a: Int is noinit
+       redef fun output
        do
                printn(_a)
        end
 
        init
-       do end
+       do 
+               _a = 0
+       end
 
        init foo
        do
@@ -45,7 +47,7 @@ class Toto
 end
 
 class Test
-       attr _t: Toto
+       var t: Toto is noinit
 
        init
        do