Fix issue 18097 - unittest symbol names can be used before semantic#7761
Fix issue 18097 - unittest symbol names can be used before semantic#7761dlang-bot merged 2 commits intodlang:masterfrom
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.
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.
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.