July 06, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4431

           Summary: Template favors alias parameter for struct
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: simen.kjaras@gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras@gmail.com> 2010-07-06 04:25:34 PDT ---
template isType( T ) {
    enum isType = true;
}

template isType( alias T ) {
    enum isType = false;
}

struct S {
    alias int foo;
}

static assert( isType!S ); // fails

Testing shows that the latter isType definition is chosen.

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