redneckbeard / thanos

Ruby -> Go at the snap of your fingers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

changes in overridden methods not reflected in inherited methods

redneckbeard opened this issue · comments

Because inheritance currently references the same method definition in memory, if an inherited method calls a method that is overridden on a child class, any changes to that method (signature, public/private status) will not be reflected in the body of the inherited method. This will probably be fixed automatically by adding super support since the solution should be roughly the same: inherited methods need to have the AST of the body cloned, rather than referenced.