https://issues.dlang.org/show_bug.cgi?id=19081
Yuxuan Shui changed:
What|Removed |Added
Summary|Can't declare enum with UDA |Can't declare enum with UDA
https://issues.dlang.org/show_bug.cgi?id=19081
--- Comment #2 from Yuxuan Shui ---
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.
--
https://issues.dlang.org/show_bug.cgi?id=19081
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/89639f2876a72015ef4ade085293deb55c2f459f
Fix issue 19081 - defining enum with UDA at statements level
https://issues.dlang.org/show_bug.cgi?id=19081
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|-