https://issues.dlang.org/show_bug.cgi?id=16044
Issue ID: 16044 Summary: __traits(allMembers) returns empty tuple for subpackages Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: yoplit...@gmail.com Given abc/def/package.d: --- module abc.def; int xyz; static this() { pragma(msg, __traits(allMembers, mixin(__MODULE__))); } --- When compiled with `dmd -c abc/def/package.d`, it should print `tuple("object", "xyz", "_staticCtor1")` but instead only prints an empty tuple. For top level packages, it works as expected. --