[Issue 2997] New: allMembers does not return interface members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 17 03:05:09 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2997

           Summary: allMembers does not return interface members
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: rsinfu at gmail.com


Created an attachment (id=372)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=372)
This patch should fix the problem.

--------------------
abstract class B { void foo(); }
interface I { void bar(); }
abstract class C : B, I {}
pragma(msg, __traits(allMembers, C).stringof);
--------------------
The above code prints:
--------------------
["foo","toString","toHash","opCmp","opEquals","Monitor","factory"]
--------------------
There is no "bar" in the output.

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


More information about the Digitalmars-d-bugs mailing list