"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/fail_compilation/fail2195.d" between
dmd-2.094.0.tar.gz and dmd-2.094.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

fail2195.d  (dmd-2.094.0):fail2195.d  (dmd-2.094.1)
skipping to change at line 19 skipping to change at line 19
void main() void main()
{ {
int[int] arr; int[int] arr;
int variable; int variable;
foreach (i, j; arr) foreach (i, j; arr)
{ {
int variable; // shadowing is disallowed but not detected int variable; // shadowing is disallowed but not detected
} }
} }
void fun()
{
int var1, var2, var3;
void gun()
{
int var1; // OK?
int[] arr;
foreach (i, var2; arr) {} // OK?
int[int] aa;
foreach (k, var3; aa) {} // Not OK??
}
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)