D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4519 - variable shadowing error from std.format
Summary: variable shadowing error from std.format
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 04:51 UTC by Richard Webb
Modified: 2010-08-04 05:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Richard Webb 2010-07-27 04:51:48 UTC
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.
Comment 1 Richard Webb 2010-08-04 05:36:41 UTC
This seems to be fixed now.