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

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Nick Treleaven <[email protected]> ---
This was stated as intended behaviour but I can't find the invalid bug now. The
reason is that an identifier can't be added to an existing scope only for part
of the remaining scope. If there are no braces for the static if, and if the
identifier is valid inside the static if, then it must be valid after it too,
as they share a single scope.

--

Reply via email to