D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12001 - __traits(isSame) does not work with the basic types
Summary: __traits(isSame) does not work with the basic types
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2014-01-26 04:29 UTC by Peter Alexander
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Peter Alexander 2014-01-26 04:29:27 UTC
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.
Comment 1 basile-z 2019-02-13 02:32:00 UTC
pull : https://github.com/dlang/dmd/pull/9356