-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Issue 20840 - No deprecation for template from deprecated selecti… #11158
Conversation
|
Thanks for your pull request and interest in making D better, @MoonlightSentinel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#11158" |
7a241fd to
3e64249
Compare
|
With this, can you deprecate a template? The test case doesn't include a template that is directly deprecated. This does look like it should provide a way forward though for the problem at hand. |
|
You mean a template declaration or an instance? |
|
My original plan was to put in a deprecated AliasSeq in std.math, but even deprecating a template declaration doesn't do anything! e.g.: deprecated alias AliasSeq(V...) = V;
alias x = AliasSeq!(1, 2, 3); // no message |
|
I see. That issue needs to be fixed as well but is unrelated to the current bug. EDIT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
3e64249 to
d611ccd
Compare
|
Changed to only check |
|
Does it also work with |
|
No, but it probably will once that bug is fixed. |
…ve import Selective imports are lowered to an AliasDeclarations which were discarded when resolving the actual TemplateDeclaration. So make sure to check the AD as well.
d611ccd to
d233c39
Compare
…ve import
Selective imports are lowered to an AliasDeclarations which were discarded when
resolving the actual TemplateDeclaration. So make sure to check the AD as well.