[Issue 10552] Cannot apply access specifiers to individual anonymous enum members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 6 00:47:39 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10552



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-07-06 00:47:36 PDT ---
(In reply to comment #0)
> -----
> enum
> {
>     private A = 1,
>     B = 2,
> }
> -----
> 
> $ dmd test.d
> > Error: basic type expected, not private

I cannot see any benefits there.
You can just separate public anonymous enum and private one.

private enum
{
    A = 1,
}
enum
{
    B = 2,
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list