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

          Issue ID: 13800
           Summary: Class from mixin template missing from ModuleInfo
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

program output does not contain "SomeClass".

///*******

module main;
import std.stdio;

mixin template Test() {
    class SomeClass { }
}

mixin Test;

void main() {
    auto sc = new SomeClass;
    assert(sc);

    foreach(m; ModuleInfo) {
        foreach(c; m.localClasses) {
            writeln(c.name);
        }
    }
}

--

Reply via email to