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.