[Issue 16548] Shadowing a variable not detected when nesting foreach with associative arrays

2019-11-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16548

Rainer Schuetze  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||r.sagita...@gmx.de
 Resolution|--- |FIXED

--- Comment #3 from Rainer Schuetze  ---
Works in dmd 2.089, with a slight diagnostic inaccuracy: issue 20369

--


[Issue 16548] Shadowing a variable not detected when nesting foreach with associative arrays

2019-11-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16548

Rainer Schuetze  changed:

   What|Removed |Added

 CC||sumit.adhik...@gmail.com

--- Comment #2 from Rainer Schuetze  ---
*** Issue 11923 has been marked as a duplicate of this issue. ***

--


[Issue 16548] Shadowing a variable not detected when nesting foreach with associative arrays

2017-09-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16548

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||accepts-invalid, diagnostic
   Hardware|x86_64  |All
 OS|Windows |All

--- Comment #1 from Vladimir Panteleev  ---
Second variable doesn't need to be a foreach variable, either:

/// test.d ///
void main()
{
int x;
int[int] aa;
foreach (k, v; aa)
{
int x;
}
}
//

--