Bug 9939 – allMembers trait doesn't returns members of nested anonymous enum
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-16T13:17:00Z
Last change time
2013-04-16T15:22:56Z
Assigned to
nobody
Creator
wazar.leollone
Comments
Comment #0 by wazar.leollone — 2013-04-16T13:17:24Z
struct Test25
{
int f;
enum /*Anonymous enum*/
{
A,
B
}
}
//Fail, only "f" have been returned.
static assert([__traits(allMembers, Test25)] == ["f", "A", "B"]);
Comment #1 by github-bugzilla — 2013-04-16T15:19:48Z