The D Doc, in http://www.digitalmars.com/d/statement.html , says the following piece of code is invalid: void func2() { int x; { int x; // illegal, x is multiply defined in function scope } } However the code compiles fine. Is this a compiler error or Doc error? In other words is entity name shadowing valid or not? (IMO it should be valid)
Fixed 0.161
*** Issue 2195 has been marked as a duplicate of this issue. ***