-
-
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
Fix issue 18097 - unittest symbol names can be used before semantic #7761
Conversation
|
Thanks for your pull request, @atilaneves! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla references
|
6ab7fc8 to
70aa934
Compare
|
Let me know when this is no longer a WIP |
|
@JinShil No longer WIP and ready for review. |
test/runnable/issue16995.d
Outdated
| shared static this() | ||
| { | ||
| import core.runtime: Runtime; | ||
| Runtime.moduleUnitTester = () => true; |
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.
Returning bool is deprecated, return a number instead.
See also: dlang/druntime#1685
|
@wilzbach Return |
| properly in the semantic pass. See: | ||
| https://issues.dlang.org/show_bug.cgi?id=16995 | ||
| */ | ||
| final void setIdentifier() |
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.
Was this added to headers also?
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 grepped and didn't find it anywhere.
PR dlang/dmd#7761 Fixes unittest symbol resolution bug https://issues.dlang.org/show_bug.cgi?id=18097.
Not only does this PR fix issue 18097, it also simplifies the unittest identifier logic and fixes the test for related issue 16995.