February 18, 2004
There appears to be a documentation error at http://www.digitalmars.com/d statement.html#block.

void func3()
{
  {   int x;
  }
  {   int x;  // illegal, x is multiply defined in function scope
  }
}

This compiles fine, and makes no sense as the next example in the docs contradicts it.  Anyone want to clarify?

-- 
 - Mik Mifflin
February 18, 2004
Mik Mifflin wrote:

[...]
>   {   int x;  // illegal, x is multiply defined in function scope
[...]

This is reported already ... however it does not matter to report it more than once. :-)

So long.