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