When a Trait is copied the environment is not passed to the copy
Trait >> copy�
| newTrait |
newTrait := self class basicNew initialize
name: self name
traitComposition: self traitComposition copyTraitExpression�
methodDict: self methodDict copy
localSelectors: self localSelectors copy
organization: self organization copy.
newTrait classTrait initializeFrom: self classTrait.
^newTrait
A possible solution
Trait >> copy�
| newTrait |
newTrait := self class basicNew initialize
name: self name
traitComposition: self traitComposition copyTraitExpression�
methodDict: self methodDict copy
localSelectors: self localSelectors copy
organization: self organization copy.
newTrait environment: self environment.
newTrait classTrait initializeFrom: self classTrait.
^newTrait
Cheers