[Issue 18194] hasStaticMember doesn't work with static enum
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 5 13:53:30 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18194
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |issues.dlang at jmdavisProg.co
| |m
Resolution|--- |INVALID
--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Except that static on an enum is meaningless and is thus ignored by the
compiler. The generated binary is identical whether static is there or not. So,
there's really nothing to detect here. It would be just as meaningful if you
put pure in front of enum (which for better or worse, does compile).
--
More information about the Digitalmars-d-bugs
mailing list