-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
#19652 Fix chained alias this. #9334
Conversation
|
It looks good to merge as is but this is a regression fix so your PR can go in stable although it's not guaranteed that there'll be a 2084.2. Also you don't refer to any issue, the dlang bot should have tell you this. There should be an issue because the bug is delivered in 2084.0. |
|
@look-at-me : Thanks for the quick fix. Could you reword the commit to comply to our style, which, as @Basile-z mentioned, will also trigger dlang bot and the various automation. Adding a comment to the code, such as "// We need to check for alias this recursively" (over the first check) could also help prevent people doing the same mistake in the future. |
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.
Can you also add the following test in runnable:
auto otherTest(inout ref Base block) @nogc { assert(0); }
auto otherTest(inout ref A block) @nogc {}
// ...
otherTest(*thingie);To make sure A is picked over Base ?
|
Thanks for your pull request and interest in making D better, @look-at-me! 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 fetch digger
dub run digger -- build "stable + dmd#9334" |
Please follow this guide to reference your Bugzilla issue in your commit message. Thanks! |
My commit message references an issue |

Culprit 4d4cd92