[Issue 4519] New: variable shadowing error from std.format

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 27 04:51:51 PDT 2010


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

           Summary: variable shadowing error from std.format
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: webby at beardmouse.org.uk


--- Comment #0 from Richard Webb <webby at beardmouse.org.uk> 2010-07-27 04:51:48 PDT ---
When trying to compile some test code with the latest (svn) versions of dmd2
and phobos, i get the error:

..\src\phobos\std\format.d(1139): Error: shadowing declaration
std.format.formatValue!(LockingTextWriter,PolicyItemGroup[],immut
able(char)).formatValue.f is deprecated


where line 1139 is

         auto f = FormatSpec!Char(f.nested);

and one of the functions parameters is also called f.

-- 
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