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 20616 - Error: undefined identifier __dollar #13130
Conversation
Thanks for your pull request and interest in making D better, @dorianverna17! 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#13130" |
There are two patches in one here, the former was rejected in #3079 from what I can tell. |
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.
See previous comments
33c0c7f
to
0b03568
Compare
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 please explain what is the problem (as in what is currently causing the bug) and what is the general idea of your solution?
0b03568
to
aa6a0a4
Compare
ping @dorianverna17 |
7718a79
to
c70fc3b
Compare
@@ -2795,6 +2795,8 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor | |||
exp.error("undefined identifier `%s`, did you mean %s `%s`?", exp.ident.toChars(), s2.kind(), s2.toChars()); | |||
else if (const p = Scope.search_correct_C(exp.ident)) | |||
exp.error("undefined identifier `%s`, did you mean `%s`?", exp.ident.toChars(), p); | |||
else if (exp.ident == Id.dollar) | |||
exp.error("undefined identifier `$`"); |
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.
$
is not really an identifier (I know it is implemented as such) its an operator
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.
I think that the error message is fine this way. It behaves as an identifier in this situation.
Please add a commit that has "Fix Issue 20616" in the commit message, so that dlang-bot picks this PR and links it to the associated bugzilla entry. Upon merger, the bot will automatically close the issue. |
Issue-20616: Modified commit PR for this issue, added supplemental error call to solve issue Issue-20616: modified PR according to the review Issue-20616: made small changes in the PR according to the review Modified PR according to the review modified PR according to the review Issue-20616: modified output message in expressionsem.d and fail compilation test and condition in opover.d
e1edb9a
to
8ea2a3d
Compare
The link for the Issue 20616:
https://issues.dlang.org/show_bug.cgi?id=20616