[Issue 9701] New: UDAs cannot be attached to enum values.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 12 07:14:19 PDT 2013
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 at puremagic.com
ReportedBy: simendsjo at gmail.com
--- Comment #0 from simendsjo <simendsjo at 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: -------
More information about the Digitalmars-d-bugs
mailing list