D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1917 - __traits(allMembers) does not return elements with specified protection
Summary: __traits(allMembers) does not return elements with specified protection
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 major
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 20:03 UTC by Neia Neutuladh
Modified: 2020-07-08 08:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Neia Neutuladh 2008-03-12 20:03:43 UTC
__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));
}
Comment 1 Neia Neutuladh 2008-11-16 08:08:50 UTC
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.
Comment 2 Neia Neutuladh 2008-11-16 08:09:04 UTC
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.
Comment 3 Dlang Bot 2020-07-08 08:35:52 UTC
dlang/dub pull request #1967 "Fix issue 1917 - Add dub dustmite --no-redirect" was merged into master:

- 1ed47b420e1d02326c527c6cd6b1b9343155f1f7 by MoonlightSentinel:
  Fix issue 1917 - Add dub dustmite --no-redirect

https://github.com/dlang/dub/pull/1967