[Issue 17586] New: Overriding a deprecated base class function gives no warning

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 2 11:43:31 PDT 2017


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

          Issue ID: 17586
           Summary: Overriding a deprecated base class function gives no
                    warning
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timon.gehr at gmx.ch

The following code should give a deprecation warning:

class C{
    deprecated void foo(){}
}

class D: C{
    override void foo(){}          
}

--


More information about the Digitalmars-d-bugs mailing list