Thread overview
[Issue 20307] Difference for `deprecated alias a = b` vs. `deprecated alias b a`
Feb 21, 2020
Mathias LANG
Feb 21, 2020
Mathias LANG
Dec 17, 2022
Iain Buclaw
Apr 18, 2023
RazvanN
February 21, 2020
https://issues.dlang.org/show_bug.cgi?id=20307

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang@gmail.com

--- Comment #1 from Mathias LANG <pro.mathias.lang@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

--
February 21, 2020
https://issues.dlang.org/show_bug.cgi?id=20307

--- Comment #2 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Re 3: I misread the example as using the new alias syntax for `h` but it's using the old one.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=20307

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
April 18, 2023
https://issues.dlang.org/show_bug.cgi?id=20307

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
This seems to have been fixed. I cannot reproduce the deprecation messages. I get a graceful compilation. Closing as WORKSFORME. Please reopen if I am missing something.

--