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

           Summary: wrong function of an overload set printed on argument
                    mismatch
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2011-11-08 17:31:15 PST ---
void foo(const char[] a) {}

void foo(int i) {}

void main()
{
    size_t i;
    foo(i);
}

$ dmd -run test.d 
DMD v2.056 DEBUG
test.d(8): Error: function test.foo (const const(char[]) a) is not callable
using argument types (ulong)
test.d(8): Error: cannot implicitly convert expression (i) of type ulong to int


Little bit misleading.

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

Reply via email to