auto_super_init: handle the case of constructors redefinition (instead of infinitivel...
[nit.git] / src / serialization_phase.nit
index c3b0dc0..ec472c2 100644 (file)
@@ -64,7 +64,7 @@ private class SerializationPhasePreModel
                var auto_serializable_nclassdefs = new Array[AStdClassdef]
                for nclassdef in nmodule.n_classdefs do
                        if nclassdef isa AStdClassdef and
-                          not nclassdef.collect_annotations_by_name("auto_serializable").is_empty then
+                          not nclassdef.get_annotations("auto_serializable").is_empty then
                                auto_serializable_nclassdefs.add nclassdef
                        end
                end