[Issue 18712] [Reg 2.072] bogus "switch skips declaration" error with case in mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 15 07:03:44 UTC 2018


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

--- Comment #5 from Rainer Schuetze <r.sagitario at gmx.de> ---
Thanks for analyzing. I wouldn't be too concerned about possible breakage with
a fix, because it's a regression (and a very recent if you compiled the code
with -d).

It seems adding the implicit scope block in the parser is too early, as it
doesn't know about mixins. OTOH it could be clarified in the spec that 'case'
in mixins do not share the scope with trailing code.

--


More information about the Digitalmars-d-bugs mailing list