pharo
pharo copied to clipboard
Push Down Class Variable Refactoring simply removes it
Bug description Push Down Class Variable Refactoring simply removes it. It does not correctly identify subclasses that reference the class variable
To Reproduce Steps to reproduce the behavior:
- Select a superclass with a Class variable that is referenced in subclasses (but not the superclass).
- In the class definition right click on the class variable and select "Push Down"3.
- The resulting refactoring will simply remove the class variable leaving undeclared bindings in the subclasses
Expected behavior The class variable should be pushed into the referring subclasses definitions.
Version information:
- Pharo Version 10
Expected development cost
To fix it, change RBAbstractClass>>bindingOf:
to:
bindingOf: aString
^ self realClass bindingOf: aString