engine: skip noinit attributes on free constructors
[nit.git] / src / naive_interpreter.nit
index fc6cbfc..ba2fb39 100644 (file)
@@ -1031,7 +1031,7 @@ redef class AClassdef
                var i = 1
                # Collect undefined attributes
                for npropdef in self.n_propdefs do
-                       if npropdef isa AAttrPropdef and npropdef.n_expr == null then
+                       if npropdef isa AAttrPropdef and not npropdef.noinit and npropdef.n_expr == null then
                                v.write_attribute(npropdef.mpropdef.mproperty, recv, args[i])
                                i += 1
                        end