pharo
pharo copied to clipboard
Duplicate class driver should use allNonMetaClasses
Describe the request
The method ReDuplicateClassDriver>>#scopes: gets the selected class using model environment classes anyOne, but since the classes answer both the class and the metaclass, if the order is inverted, then the selected class will be the metaclass, which makes no sense for class duplication and produce errors later when accessing the rbClass.
Expected behavior
Use allNonMetaClasses to prevent getting metaclasses where are not needed.