March 12, 2013 [Issue 9701] New: UDAs cannot be attached to enum values. | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from simendsjo <simendsjo@gmail.com> 2013-03-12 07:14:17 PDT --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation