www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1526] New: Two conflict templates accepted

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1526

           Summary: Two conflict templates accepted
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


template toString (U,C,T:U[C])
{
        char[] toString(U m,C c, T t) { return ""; }
}
char[] toString()(int k){return "";}

void main()
{
        toString!(int,char,int[char])(d,m,v);
        toString(3);
}


-- 
Sep 22 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1526


davidl 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





umm, it's invalid


-- 
Sep 22 2007