autosuperinit: constructors can be defined in interface, so autosuperinit should...
authorJean Privat <jean@pryen.org>
Mon, 13 Jul 2015 15:40:30 +0000 (11:40 -0400)
committerJean Privat <jean@pryen.org>
Mon, 13 Jul 2015 16:44:37 +0000 (12:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/semantize/auto_super_init.nit

index cb4b70a..4a432c7 100644 (file)
@@ -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