www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18609] New: `is` expression identifier accessible outside

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

          Issue ID: 18609
           Summary: `is` expression identifier accessible outside `static
                    if`
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: nick geany.org

static if (is(int W))
    {
    }
    pragma(msg, W); // ok with dmd v2.079.0

`W` should only be visible inside the `static if`.

--
Mar 14 2018