Skip to content

Commit

Permalink
Merge pull request #3736 from tesonep/backporting-fix-for-diamond-pro…
Browse files Browse the repository at this point in the history
…blem-in-stateful-traits

Backport of fix for diamond problem in traits with slots.
  • Loading branch information
MarcusDenker authored Jul 15, 2019
2 parents 7a80338 + efd2219 commit 591a635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TraitsV2/TaSequence.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ TaSequence >> validateMethods: aTrait [
{ #category : #validations }
TaSequence >> validateSlots: anElement [
self slots do: [ :e | anElement slots do: [ :other |
(e name = other name and: [ e ~= other ])
(e name = other name and: [ e definingClass ~= other definingClass ])
ifTrue: [ self error: 'The added trait duplicates an existing slot ' , e name printString ] ] ]
]

Expand Down

0 comments on commit 591a635

Please sign in to comment.