File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ MCClassTraitDefinition class >> baseTraitName: aString classTraitComposition: cl
2828
2929{ #category : #comparing }
3030MCClassTraitDefinition >> = aDefinition [
31- ^ (super = aDefinition)
32- and : [baseTrait = aDefinition baseTrait
33- and : [self classTraitCompositionString = aDefinition classTraitCompositionString]]
34-
35-
31+ ^ super = aDefinition
32+ and : [ baseTrait = aDefinition baseTrait
33+ and : [ self classTraitCompositionString = aDefinition classTraitCompositionString
34+ and : [ category = aDefinition category ] ] ]
3635]
3736
3837{ #category : #visiting }
@@ -91,8 +90,8 @@ MCClassTraitDefinition >> hash [
9190 | hash |
9291 hash := String stringHash: baseTrait initialHash: 0 .
9392 hash := String stringHash: self classTraitCompositionString initialHash: hash.
94- ^ hash
95-
93+ category ifNotNil: [ :cat | hash := String stringHash: cat initialHash: hash ].
94+ ^ hash
9695]
9796
9897{ #category : #initialization }
You can’t perform that action at this time.
0 commit comments