-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 18624 - wrong behavior of getSymbolsByUDA if one of the symbols having th… #6290
Conversation
|
Thanks for your pull request and interest in making D better, @Spoov! 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
|
std/traits.d
Outdated
| @Attr void c(); | ||
| } | ||
|
|
||
| static assert(getSymbolsByUDA!(A, Attr).length == 3); |
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.
Why don't you check the result directly?
(would be more robust)
A simple way would be getSymbolsByUDA!(A, Attr).stringof == "tuple(a, a, c)"
|
As this is a regression it would be great if you could open an issue for it and reference it in the commit message ( Also it should be rebased to stable: See the message of dlang-bot for details. |
…bols having the UDA is a function
|
See also #6292 - that's why linking to the PR is a good idea ... |
|
This is my first Pull Request / Issue here so i didn't tough of doing it. I hope i remember doing it next time :) |
|
No worries. Nobody is perfect - especially on the first run. |
…e UDA is a function
The last change to getSymbolsByUDA introduced a bug, causing it to ignore some symbols