-
-
Notifications
You must be signed in to change notification settings - Fork 668
Fix Issue 17625 - Confusing error message for private functions in different modules #7785
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
Conversation
|
Thanks for your pull request, @RazvanN7! 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
|
| @@ -1,15 +0,0 @@ | |||
| /* | |||
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.
Thou shalt not delete existing tests 👿
If they really pass now, they should be moved to compilable.
wilzbach
left a comment
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.
.
73dd051 to
51e24b8
Compare
|
|
||
| module fail17625; | ||
|
|
||
| import imports.a17625; |
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.
FYI: You are importing the modules using imports.a17625 but then you declare the module name in the file to be a17625. I'm hoping to deprecate this via #7778
The problem was that whenever a symbol is searched in different modules if the same symbol is found in 2 or more different modules an overload set is created no matter the privacy attribute of the symbol. I added a check to make sure that the symbol found is accessible, however that made it so that some deprecations where not issued anymore on some fail_compilation tests. I deleted the tests since it wasn't possible to modify them to get rid of the deprecation. I don't know what the purpose of those tests was, but with the new patch the code does not deprecate anymore. Ideas?