From: Jean Privat Date: Tue, 4 Nov 2014 20:23:27 +0000 (-0500) Subject: semantize: do not auto_super_init `new`-factories X-Git-Tag: v0.6.11~55^2~3 X-Git-Url: http://nitlanguage.org semantize: do not auto_super_init `new`-factories Signed-off-by: Jean Privat --- diff --git a/src/semantize/auto_super_init.nit b/src/semantize/auto_super_init.nit index 31a508a..ac7763e 100644 --- a/src/semantize/auto_super_init.nit +++ b/src/semantize/auto_super_init.nit @@ -65,7 +65,7 @@ redef class AMethPropdef var nosuper = get_single_annotation("nosuper", modelbuilder) # Collect only for constructors - if not mpropdef.mproperty.is_init then + if not mpropdef.mproperty.is_init or mpropdef.mproperty.is_new then if nosuper != null then modelbuilder.error(nosuper, "Error: nosuper only in `init`") return end