[Issue 18609] New: `is` expression identifier accessible outside `static if`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 14 14:34:14 UTC 2018


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 at puremagic.com
          Reporter: nick at 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`.

--


More information about the Digitalmars-d-bugs mailing list