Bug 12001 – __traits(isSame) does not work with the basic types
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-26T04:29:27Z
Last change time
2020-03-21T03:56:33Z
Keywords
pull
Assigned to
No Owner
Creator
Peter Alexander
Comments
Comment #0 by peter.alexander.au — 2014-01-26T04:29:27Z
What the title says: __traits(isSame, int, int) is false. It is false for any built-in types, not just int.
It really should be true if isSame is to be useful in generic code.