Merge: Auto super init call next method
authorJean Privat <jean@pryen.org>
Tue, 19 Aug 2014 00:33:07 +0000 (20:33 -0400)
committerJean Privat <jean@pryen.org>
Tue, 19 Aug 2014 00:33:07 +0000 (20:33 -0400)
commit5e665951627b86e8395bdbf107a966fa018701ba
treebeae52b62f7e50868d21504a18d6d1fc3e3bf9c6
parentba7c1aed7b63ed2470f3bed72c8ad8c4fa2250ce
parent801c36bd3184b9c5830d6a0cd7fba7659a7881ed
Merge: Auto super init call next method

If one redefines a constructor in a subclass (a real redefinition, not just a look-alike init with the same name) the auto-super-init phase automatically inserted a call to a compatible constructor in the super-class, so a call to itself, so a fatal infinite recursive call :/

It is an old bug, but nobody did real redefinitions of constructors, except that it will be the norm with the new constructors. So just let solve the bug now, before people start to complain.

Pull-Request: #676
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>