[Issue 6914] New: wrong function of an overload set printed on	argument mismatch
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov  8 17:31:52 PST 2011
    
    
  
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: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list