[Issue 1412] New: stringof shouldn't be shadowed by member func

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 11 07:35:55 PDT 2007


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

           Summary: stringof shouldn't be shadowed by member func
           Product: D
           Version: 1.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


import std.stdio;
struct k
{
        char[] stringof()
        {
                return "mystringof";
        }
}
void main()
{
        k v;
        writefln(v.stringof);
}


-- 



More information about the Digitalmars-d-bugs mailing list