https://issues.dlang.org/show_bug.cgi?id=10525

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Kenji Hara <[email protected]> ---
Struct equality is now member-wise, and runtime hash calculation
(TypeInfo.getHash) should be consistent with the equality result.

With two equivalent type objects a and b, it should be guaranteed:

 assert(a != b || typeid(typeof(a)).getHash(&a) ==
typeid(typeof(b)).getHash(&b));

*** This issue has been marked as a duplicate of issue 13045 ***

--

Reply via email to