Bug 17585 – Wrong error message for deprecated overrides

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-02T18:39:53Z
Last change time
2020-03-21T03:56:39Z
Keywords
diagnostic
Assigned to
No Owner
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2017-07-02T18:39:53Z
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
Comment #1 by razvan.nitu1305 — 2017-11-13T14:11:24Z
Comment #2 by b2.temp — 2017-11-13T14:12:04Z
*** Issue 17980 has been marked as a duplicate of this issue. ***
Comment #3 by b2.temp — 2017-11-17T14:39:53Z
*** Issue 17989 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2017-11-20T11:30:44Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9e932a7b5e17901f4a6fe246d6e5c3fb373f881e Fix Issue 17585 - Wrong error message for deprecated overrides https://github.com/dlang/dmd/commit/3fb188cab300451cbe7c85d8dbd12b82fd334a96 Merge pull request #7312 from RazvanN7/Issue_17585 Fix Issue 17585 - Wrong error message for deprecated overrides merged-on-behalf-of: Mike <[email protected]>
Comment #5 by github-bugzilla — 2017-12-18T22:57:29Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9e932a7b5e17901f4a6fe246d6e5c3fb373f881e Fix Issue 17585 - Wrong error message for deprecated overrides https://github.com/dlang/dmd/commit/3fb188cab300451cbe7c85d8dbd12b82fd334a96 Merge pull request #7312 from RazvanN7/Issue_17585