[Issue 9692] New: __traits(allMembers) fails on module without a package

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 11 16:48:01 PDT 2013


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

           Summary: __traits(allMembers) fails on module without a package
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: andrej.mitrovich at gmail.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-11 16:47:59 PDT ---
module test;
import dir.other;
pragma(msg, __traits(allMembers, dir.other));  // ok

import other;
pragma(msg, __traits(allMembers, other));  // ng

void main(){ }

--- 

module other;
int j;

---

module dir.other;
int j;


$ rdmd test.d
> Error: import other has no members

-- 
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