Bug 17586 – Overriding a deprecated base class function gives no warning

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-02T18:43:31Z
Last change time
2017-12-18T22:56:55Z
Keywords
diagnostic
Assigned to
No Owner
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2017-07-02T18:43:31Z
The following code should give a deprecation warning: class C{ deprecated void foo(){} } class D: C{ override void foo(){} }
Comment #1 by razvan.nitu1305 — 2017-11-13T13:49:36Z
Comment #2 by github-bugzilla — 2017-11-15T17:18:21Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1ae083f9d880cd6a301dc8e1f87d3b32f7993eac Fix Issue 17586 - Overriding a deprecated base class function gives no warning https://github.com/dlang/dmd/commit/9c684a3a090c1d1c89042a8885adf52e23f373fa Merge pull request #7311 from RazvanN7/Issue_17586 Fix Issue 17586 - Overriding a deprecated base class function gives no warning merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #3 by github-bugzilla — 2017-12-18T22:56:55Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1ae083f9d880cd6a301dc8e1f87d3b32f7993eac Fix Issue 17586 - Overriding a deprecated base class function gives no warning https://github.com/dlang/dmd/commit/9c684a3a090c1d1c89042a8885adf52e23f373fa Merge pull request #7311 from RazvanN7/Issue_17586