Bug 9692 – __traits(allMembers) fails on module without a package

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-11T16:47:00Z
Last change time
2013-04-08T04:11:13Z
Keywords
pull, rejects-valid
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-03-11T16:47:59Z
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
Comment #1 by andrej.mitrovich — 2013-03-11T16:54:02Z
Comment #2 by github-bugzilla — 2013-04-05T05:03:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c29aaef47e0777c86ecf45d078e4d536981d4049 Fixes Issue 9692 - allMembers trait should work on module without a package. https://github.com/D-Programming-Language/dmd/commit/5b7fdf3f45c4e960847f307c55dc598bcd3d4045 Merge pull request #1739 from AndrejMitrovic/Fix9692 Issue 9692 - allMembers trait should work on module without a package.
Comment #3 by github-bugzilla — 2013-04-08T04:11:13Z