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
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c86e8b24c5170001008a9740955f849268f3b15c fix Issue 9939 - allMembers trait doesn't returns members of nested anonymous enum https://github.com/D-Programming-Language/dmd/commit/f7e81e80d7a9ad52f500fb44895d3f3879a14511 Merge pull request #1902 from IgorStepanov/allmembersenum Fixes Issue 9939 allMembers trait doesn't returns members of nested anonymous enum