[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 02:40:45 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1399
------- Comment #5 from smjg at iname.com 2007-08-07 04:40 -------
That's different, because when it isn't the body of a CC statement, { } opens a
new scope. In this case, the compiler is behaving correctly according to the
spec as I try it.
bz1399c4.d(8): Error: shadowing declaration bz1399c4.main.a is deprecated
--
More information about the Digitalmars-d-bugs
mailing list