[Issue 13521] New: [D1] -di disables declaration shadowing message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 23 04:12:05 PDT 2014


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

          Issue ID: 13521
           Summary: [D1] -di disables declaration shadowing message
           Product: D
           Version: D1
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: public at dicebot.lv

Shadowing declarations is deprecated, and removed in D2.

In D1, a deprecation error is issued by default, but when using -di to only
print deprecations as warnings, the message is not emitted.

void f()
{
    int i;
    { int i; }
}

$ dmd1 -c shadow.d
shadow.d(4): Deprecation: shadowing declaration shadow.f.i is deprecated
$ dmd1 -c -di shadow.d

--


More information about the Digitalmars-d-bugs mailing list