Bug 17584 – Wrong error message for deprecated overrides

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-07-02T18:39:00Z
Last change time
2017-07-02T18:40:48Z
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2017-07-02T18:39:26Z
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 timon.gehr — 2017-07-02T18:40:48Z
Accidentally created the issue twice.