digitalmars.D.bugs - [Issue 9701] New: UDAs cannot be attached to enum values.
- d-bugmail puremagic.com (32/32) Mar 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9701
http://d.puremagic.com/issues/show_bug.cgi?id=9701 Summary: UDAs cannot be attached to enum values. Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: simendsjo gmail.com enum E { (1) v1 } void main() {} $ dmd t t.d(2): Error: basic type expected, not t.d(2): Error: type only allowed if anonymous enum and no enum type t.d(2): Error: if type, there must be an initializer t.d(2): Error: found ' ' when expecting ',' t.d(2): Error: basic type expected, not ( t.d(2): Error: unexpected ( in declarator t.d(2): Error: basic type expected, not 1 t.d(2): Error: found '1' when expecting ')' t.d(2): Error: type only allowed if anonymous enum and no enum type t.d(2): Error: if type, there must be an initializer t.d(2): Error: found ')' when expecting ',' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 12 2013