Why is this an error. Dmd wants to make sure that I declare a new variable
in the foreach statement and not use an existing one?
module test;
void main()
{
int i;
int[] nums;
foreach(i; nums)
{
//
}
}
dmd test.d
test.d(7): Error: shadowing declaration test.main.i is deprecated