[Issue 7348] New: to!string(null) matches more than one template declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 22 09:56:30 PST 2012


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

           Summary: to!string(null) matches more than one template
                    declaration
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: alienballance at gmail.com


--- Comment #0 from Mariusz Gliwiński <alienballance at gmail.com> 2012-01-22 09:56:28 PST ---
import std.conv;
void main()
{
    to!string(null);
}

/usr/include/d/std/conv.d(237): Error: template std.conv.toImpl(T,S) if
(isImplicitlyConvertible!(S,T)) toImpl(T,S) if (isImplicitlyConvertible!(S,T))
matches more than one template declaration,
/usr/include/d/std/conv.d(245):toImpl(T,S) if (isImplicitlyConvertible!(S,T))
and /usr/include/d/std/conv.d(924):toImpl(T,S) if (is(S : Object) &&
isSomeString!(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