[Issue 11425] New: Broken shadowing variable diagnostic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 2 21:20:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11425
Summary: Broken shadowing variable diagnostic
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-11-02 21:20:26 PDT ---
-----
void main()
{
int x;
{
int x = 1;
}
}
-----
$ dmd test.d
> test.d(6): Error: is shadowing declaration test.main.x
*What* is shadowing the declaration. It should print:
> test.d(6): Error: 'x' is shadowing declaration test.main.x
--
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