On Sunday, 19 November 2017 at 15:57:58 UTC, Jonathan M Davis wrote:

It isn't specific to UDAs. You can't put _any_ attributes on enums - including something like deprecated (though to be fair, not many attributes would make sense on an enum member).

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

Indeed. That precise use case showed up recently in this PR: https://github.com/dlang/dmd/pull/7303/files

Mike

Reply via email to