You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A hand-written Equals(TBase) on a value object is kept, and a collection of the base compares by it #196
Measured on release/2.4.0 at 97c87c1, 2026-10-30. ValueObjectDeclaration.EqualityDeclaredByHand refuses Equals(TSelf), GetHashCode() and an explicit IEquatable<TSelf>.Equals, and reads no Equals(TBase). The hand-written one implements IEquatable<DeepBase> (re-listed through IReimplementedEquatable<DeepBase>), and ValueObjectContractAspect.IntroduceEquality skips its own new Equals(TBase) when the value object declares one, so a collection of the base compares by reference while the value object's equality is its wrapped value's.
What you expected
CMTK1011, as for a hand-written Equals(TSelf): a value object's equality is its wrapped value's. Reported from an outside review of #193.
Activity
CaffeinatedCoder commentedon Oct 30, 2026
Fixed by #202, merged into
release/2.3.1as 70e3d8b; ships in 2.3.1.