Different structs with the same properties

I think it is because the default implementation of == for a new struct falls back on ===, which tests if the two objects share the same memory address (i.e. if they are one and the same). If your struct includes mutable fields, you need to redefine Base.:(==) for your own struct in a way that compares field values instead.

3 Likes