[Issue 20762] __traits(isSame) is underspecified for enums and literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 24 17:16:16 UTC 2020


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

--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
But, on the other hand:

@(1) enum e = 1;
pragma(msg, __traits(getAttributes, e));

is currently legal meaning e indeed has a distinct identity from 1. So perhaps
the spec does need clarification rather than the implementation.

--


More information about the Digitalmars-d-bugs mailing list