[Issue 1399] Wrapping a case statement in a version statement gives a shadowing declaration error.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 7 00:54:34 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1399





------- Comment #4 from aziz.kerim at gmail.com  2007-08-07 02:54 -------
You actually don't need the version block to demonstrate this bug. This will do
as well:

switch(1)
{
case 1:
  auto a = 1;
{
case 2:
  auto a = 2;
}
default:
}

By the way, regarding the last code snippet I showed in my previous post: this
isn't a bug, the compiler behaves correctly.


-- 



More information about the Digitalmars-d-bugs mailing list