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
https://github.com/D-Programming-Language/dmd/pull/1739
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.
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ac0eaae07c4fae7d47542ed8a4440a830129d3ae Fixup test-case for Issue 9692. https://github.com/D-Programming-Language/dmd/commit/cb977805169e4042a9f5b80df4d75de222c83460 Merge pull request #1869 from AndrejMitrovic/Fixup9692 Fixup test-case for Issue 9692.