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
28
28
29
29
{ #category : #comparing }
30
30
MCClassTraitDefinition >> = 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 ] ] ]
36
35
]
37
36
38
37
{ #category : #visiting }
@@ -91,8 +90,8 @@ MCClassTraitDefinition >> hash [
91
90
| hash |
92
91
hash := String stringHash: baseTrait initialHash: 0 .
93
92
hash := String stringHash: self classTraitCompositionString initialHash: hash.
94
- ^ hash
95
-
93
+ category ifNotNil: [ :cat | hash := String stringHash: cat initialHash: hash ].
94
+ ^ hash
96
95
]
97
96
98
97
{ #category : #initialization }
You can’t perform that action at this time.
0 commit comments