fix Issue 9939 - allMembers trait doesn't returns members of nested anonymous enum
Merge pull request #1902 from IgorStepanov/allmembersenum

Fixes Issue 9939 allMembers trait doesn't returns members of nested anonymous enum