Skip to content

Commit e58919e

Browse files
committed
add Annotated.opEquals
1 parent 1870c75 commit e58919e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

source/mir/annotated.d

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ struct Annotated(T) {
6868
///
6969
alias _value this;
7070

71+
///
72+
bool opEquals(const Annotated rhs) const
73+
{
74+
return annotations == rhs.annotations && _value == rhs._value;
75+
}
76+
7177
/++
7278
Params:
7379
annotations = non-empty array of annotations

0 commit comments

Comments
 (0)