loader: `MModule::load` cause build_module_importation
[nit.git] / tests / base_attr_def.nit
index 17da0d3..ecab175 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
@@ -32,7 +32,8 @@ class Foo
                a2.output
        end
 
-       init
+       init is
+               old_style_init
        do
                a1 = 1
                a2 = 2
@@ -49,7 +50,8 @@ class Bar
                a3.output
        end
 
-       init 
+       init is
+               old_style_init
        do 
                a1 = 10
                a2 = 20