Official documentation on page http://dlang.org/enum.html in "Manifest Constants" section has an example of anonymous enum with a single member.
> enum i = 4; // i is 4 of type int
> enum long l = 3; // l is 3 of type long
But rules on the same page don't have description of this case. Specification says that members are always enclosed with braces '{' and '}'. I think documentation must be updated.
(In reply to briancschott from comment #1)
> This actually is documented, but it somewhere completely different:
> http://dlang.org/declaration.html#AutoDeclaration
Yes, you are right. Thanks to your comment I've found error in my D parser :)
Comment #3 by hsteoh — 2014-09-18T19:00:19Z
Should this be closed then? Or should we add a link from enum.html to declaration.html?
Comment #4 by github-bugzilla — 2015-07-08T00:03:35Z