https://issues.dlang.org/show_bug.cgi?id=18609
RazvanN <razvan.nitu1...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1...@gmail.com Resolution|--- |WONTFIX --- Comment #2 from RazvanN <razvan.nitu1...@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. --