Summary: Shadowing declaration not detected when iterating
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2012-05-02 
16:56:48 PDT ---
int[int] table;

void main()
    int foo;
    foreach (a, b; table)
        string foo = "";

No error! This happens when iterating hashes. Change the table type to an array
(e.g. int[]) and you'll see the shadowing declaration error.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to