Thread overview
[Issue 18609] `is` expression identifier accessible outside `static if`
Aug 21, 2018
Nick Treleaven
Aug 21, 2018
ZombineDev
Feb 25, 2022
RazvanN
Jul 13, 2023
Nick Treleaven
August 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18609

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
           Severity|enhancement                 |normal

--
August 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18609

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--- Comment #1 from ZombineDev <petar.p.kirov@gmail.com> ---
`static if` doesn't create a scope, so I think the current behavior is correct, though a bit suprising.

--
February 25, 2022
https://issues.dlang.org/show_bug.cgi?id=18609

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Yes, the behavior is correct. Static if does not introduce a scope so it is only natural that W can be seen from outside the static if scope.

--
July 13, 2023
https://issues.dlang.org/show_bug.cgi?id=18609

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
*** Issue 21078 has been marked as a duplicate of this issue. ***

--