[Issue 20307] Difference for `deprecated alias a = b` vs. `deprecated alias b a`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 21 09:04:04 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20307
Mathias LANG <pro.mathias.lang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pro.mathias.lang at gmail.com
--- Comment #1 from Mathias LANG <pro.mathias.lang at gmail.com> ---
Note that the correct behavior here would be to output no message.
The reasoning is that those alias are deprecated, and *declaring* deprecated
symbols does not trigger a message, only using them.
So the behavior of the old alias syntax is actually what needs to be fixed.
1) I assume they are parsed differently (since the new alias syntax can be a
template declaration)
2) I don't see a difference, both `g` and `h` are not outputting a message,
right ?
3) That's a bug
--
More information about the Digitalmars-d-bugs
mailing list