[Issue 16044] __traits(allMembers) returns empty tuple for subpackages

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 30 19:20:43 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=16044

Alexey Kulentsov <crimaniak at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crimaniak at gmail.com

--- Comment #1 from Alexey Kulentsov <crimaniak at gmail.com> ---
For DMD64 D Compiler 2.074.0 result is:

abc/def/package.d-mixin-7(7): Deprecation: package abc.def is not accessible
here, perhaps add 'static import abc.def;'
tuple()

So abc.def package is not accessible from abc/def/package.d
But accessible if I move/rename file to abc/def.d and result is tuple("object",
"xyz", "_staticCtor1")

So it seems, for now, the problem is in the availability of the module, not in
the allMembers trait.

--


More information about the Digitalmars-d-bugs mailing list