[Issue 19081] Can't declare enum with UDA at statement level

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 12 17:31:41 UTC 2018


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

--- Comment #2 from Yuxuan Shui <yshuiv7 at gmail.com> ---
This is because, at statement level, enum is also a storage class:

    enum X = 10;

I wonder why declaring enum without a UDA works at statement level. I smell
terrible hacks.

--


More information about the Digitalmars-d-bugs mailing list