Skip to content

Commit

Permalink
minor fix on type compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tomooda committed Feb 1, 2024
1 parent 2a4177c commit eace6b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions repository/ViennaTalk-Type-Core/ViennaUnitType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ ViennaUnitType >> basicIsEnumerable [
^ true
]

{ #category : #testing }
ViennaUnitType >> isCompatibleWith: aViennaType [

^ self = aViennaType or: [
(aViennaType isChoiceType or: [ aViennaType isConstrainedType ])
and: [ aViennaType isCompatibleWith: self ] ]
]

{ #category : #testing }
ViennaUnitType >> isUnitType [

Expand Down

0 comments on commit eace6b4

Please sign in to comment.