www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9939] New: allMembers trait doesn't returns members of nested anonymous enum

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9939

           Summary: allMembers trait doesn't returns members of nested
                    anonymous enum
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: wazar.leollone yahoo.com



13:17:24 PDT ---
struct Test25
{
    int f;
    enum /*Anonymous enum*/
    {
        A,
        B
    }
}

//Fail, only "f" have been returned.
static assert([__traits(allMembers, Test25)] == ["f", "A", "B"]);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 16 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9939




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


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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 16 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9939


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 16 2013