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

          Issue ID: 19581
           Summary: allMembers of module does not include named imports
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Repro:

module test;
import std.string : format;
pragma(msg, __traits(allMembers, test).stringof);

Output: tuple("object")

Expected: tuple("object", "format").

Alternately, *some* way to detect imported modules and their symbols is
necessary. Of course, right now there's no reliable compiletime way to
determine imports at all.

--

Reply via email to