[Issue 19581] New: allMembers of module does not include named imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 14 08:02:47 UTC 2019


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: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

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.

--


More information about the Digitalmars-d-bugs mailing list