From a41f1152f77141ae77822ec4629d8df3f185af90 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 13 Jul 2015 11:40:30 -0400 Subject: [PATCH] autosuperinit: constructors can be defined in interface, so autosuperinit should search for them Signed-off-by: Jean Privat --- src/semantize/auto_super_init.nit | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/semantize/auto_super_init.nit b/src/semantize/auto_super_init.nit index cb4b70a..4a432c7 100644 --- a/src/semantize/auto_super_init.nit +++ b/src/semantize/auto_super_init.nit @@ -73,13 +73,6 @@ redef class AMethPropdef return end - # Do we inherit for a constructor? - var skip = true - for cd in mclassdef.in_hierarchy.direct_greaters do - if cd.mclass.kind.need_init then skip = false - end - if skip then return - # Now we search for the absence of any explicit super-init invocation # * via a "super" # * via a call of an other init -- 1.7.9.5