libevent: rename `bind_to` to the more precise `bind_tcp`
[nit.git] / tests / test_create.nit
index 2eea360..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
@@ -47,7 +47,7 @@ class Toto
 end
 
 class Test
-       attr _t: Toto
+       var t: Toto is noinit
 
        init
        do