[Issue 10190] New: fullyQualifiedName on enum template members doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 28 01:49:09 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10190

           Summary: fullyQualifiedName on enum template members doesn't
                    work
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: thelastmammoth at gmail.com


--- Comment #0 from thelastmammoth at gmail.com 2013-05-28 01:49:08 PDT ---
import std.stdio;
import std.traits;

template A(T){
    struct A{
        T x;
        void foo(int z){}
    }
}
void main(){
    enum b=A!int.init;
    auto c=A!int.init;
    writeln(fullyQualifiedName!(A!int.init));
    writeln(fullyQualifiedName!(b));
    writeln(fullyQualifiedName!(c));
}


prints:
T
T
tests.main.main.c

is that normal to print T ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list