auto_super_init: handle the case of constructors redefinition (instead of infinitivel...
[nit.git] / src / rapid_type_analysis.nit
index ceca71d..1585fb1 100644 (file)
@@ -247,7 +247,6 @@ class RapidTypeAnalysis
                                                        v.add_monomorphic_send(v.receiver, su)
                                                end
                                        end
-
                                else
                                        abort
                                end
@@ -263,6 +262,9 @@ class RapidTypeAnalysis
                                                v.add_callsite(auto_super_init)
                                        end
                                end
+                               if npropdef.auto_super_call then
+                                       self.add_super_send(v.receiver, mmethoddef)
+                               end
                        end
 
                        if mmeth.is_new then