Thread overview
[Issue 1917] New: __traits(allMembers) does not return elements with specified protection
Mar 13, 2008
d-bugmail
Nov 16, 2008
d-bugmail
Nov 16, 2008
d-bugmail
March 13, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1917

           Summary: __traits(allMembers) does not return elements with
                    specified protection
           Product: D
           Version: 2.010
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: dhasenan@gmail.com


__traits(allMembers, Rect) returns [b getY print toString toHash opCmp
opEquals] here:

class Rect
{
    private int a;
    int b;
    public int getX()
    {
        return 4;
    }
    int getY()
    {
        return 4;
    }
}


void main()
{
    writefln(__traits(allMembers, Rect));
}


-- 

November 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1917





------- Comment #1 from dhasenan@gmail.com  2008-11-16 08:08 -------
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.


-- 

November 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1917


dhasenan@gmail.com changed:

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




------- Comment #2 from dhasenan@gmail.com  2008-11-16 08:09 -------
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.


--