www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17586] New: Overriding a deprecated base class function gives

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 puremagic.com
          Reporter: timon.gehr gmx.ch

The following code should give a deprecation warning:

class C{
    deprecated void foo(){}
}

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

--
Jul 02