Fix Issue 17625 - Confusing error message for private functions in different modules#7785
Fix Issue 17625 - Confusing error message for private functions in different modules#7785andralex merged 1 commit intodlang:masterfrom
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.
Thou shalt not delete existing tests 👿
If they really pass now, they should be moved to compilable.
73dd051 to
51e24b8
Compare
|
|
||
| module fail17625; | ||
|
|
||
| import imports.a17625; |
There was a problem hiding this comment.
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?