www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17584] New: Wrong error message for deprecated overrides


          Issue ID: 17584
           Summary: Wrong error message for deprecated overrides
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timon.gehr gmx.ch

The code:

class C{
    void foo(){}

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


Deprecation: function tt.D.foo deprecated functions cannot be annotated

That is not what is happening. The error message should instead be:

Deprecation: overridden functions cannot be deprecated

Jul 02 2017