Skip to content

Conversation

@RazvanN7
Copy link
Contributor

@RazvanN7 RazvanN7 commented Jan 26, 2018

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?

@dlang-bot
Copy link
Contributor

dlang-bot commented Jan 26, 2018

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:

  • smaller, focused PRs are easier to review than big ones

  • try not to mix up refactoring or style changes with bug fixes or feature enhancements

  • provide helpful commit messages explaining the rationale behind each change

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

Auto-close Bugzilla Description
17625 Confusing error message for private functions in different modules

@RazvanN7 RazvanN7 changed the title Issue 17625 - Confusing error message for private functions in different modules Fix Issue 17625 - Confusing error message for private functions in different modules Jan 26, 2018
@@ -1,15 +0,0 @@
/*
Copy link
Contributor

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.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@RazvanN7 RazvanN7 force-pushed the Issue_17625 branch 2 times, most recently from 73dd051 to 51e24b8 Compare January 29, 2018 10:41
@andralex andralex merged commit e0327f3 into dlang:master Jan 29, 2018

module fail17625;

import imports.a17625;
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants