thanos icon indicating copy to clipboard operation
thanos copied to clipboard

changes in overridden methods not reflected in inherited methods

Open redneckbeard opened this issue 3 years ago • 0 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.

redneckbeard avatar Feb 26 '22 18:02 redneckbeard