[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
Mon Aug 6 09:00:26 PDT 2007


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Keywords|rejects-valid               |diagnostic




------- Comment #2 from smjg at iname.com  2007-08-06 11:00 -------
Indeed, the bug is that it delivers the wrong error message.  The correct
message would be

bz1399.d(11): Error: declaration bz1399.func.a is already defined

However, if I get rid of the version block, the code compiles without error,
but this is due to issue 603.

And Nazo, please don't quote the entire message when replying.


-- 



More information about the Digitalmars-d-bugs mailing list