Bug 9876 – deprecated is not announced

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-04T07:35:00Z
Last change time
2015-12-06T21:33:17Z
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2013-04-04T07:35:19Z
This code should announce deprecation: ------- alias a b; deprecated enum a = 0; ------- It is hoped that the following message is announced: ------- $ dmd -c main main.d(1): Deprecation: variable main.a is deprecated
Comment #1 by andrej.mitrovich — 2013-04-04T08:31:57Z
(In reply to comment #0) > This code should announce deprecation: > ------- > alias a b; > deprecated enum a = 0; > ------- > > It is hoped that the following message is announced: > ------- > $ dmd -c main > main.d(1): Deprecation: variable main.a is deprecated However I think this should be silent: ------- deprecated alias a b; deprecated enum a = 0; -------
Comment #2 by andrej.mitrovich — 2013-04-05T12:43:46Z
(In reply to comment #1) > However I think this should be silent: Ah nevermind, the OP sample is a forward reference issue.
Comment #3 by pro.mathias.lang — 2015-12-06T21:33:17Z
This works in 2.069 (and so does Andrej's example). Closing as w4m - hopefully so that it won't be mentioned in the changelog.