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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------