[Issue 13362] DMD accepts body-less switch

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 23 09:04:09 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13362

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to yebblies from comment #1)
> These are unfortunately valid, and relied upon for this:
> 
> switch(...) with(...)
> {
> }

Any other valid cases?  It might seem reasonable to clamp down on just what is
accepted.  Also accepted code.


  switch(ch) with(obj)
    return;

--


More information about the Digitalmars-d-bugs mailing list