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

          Issue ID: 17585
           Summary: Wrong error message for deprecated overrides
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The code:

class C{
    void foo(){}
}

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

Yields:

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

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

Deprecation: overridden functions cannot be deprecated

--

Reply via email to