https://issues.dlang.org/show_bug.cgi?id=16548

Vladimir Panteleev <[email protected]> changed:

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

--- Comment #1 from Vladimir Panteleev <[email protected]> ---
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;
    }
}
//////////////////////

--

Reply via email to