Skip to content

[Sema] Improve the note on imports with an access-level when it causes an error #64243

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

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Mar 9, 2023

Using an access-level on an import downgrades imported decl from public to the import's access-level. When we can identify which decl is problematic, name it in the note displayed on the import. When using an IDE, the added context should help understanding the effect of the import's access level on the decl causing an error further down in the source file.

Using an access-level on an import downgrades imported decl from public
to the import's access-level. When we can identify which decl is
problematic, name it in the note displayed on the import. This should
help understanding the effect of the import's access level on the decl
causing an error further down in the source file.
@xymus xymus requested review from beccadax, elsh and tshortli March 9, 2023 17:13
@xymus
Copy link
Contributor Author

xymus commented Mar 9, 2023

@swift-ci Please smoke test

@xymus xymus changed the title [Sema] Improve the note on imports with an access-level when it caused an error lower down [Sema] Improve the note on imports with an access-level when it causes an error Mar 9, 2023
@xedin xedin removed their request for review March 9, 2023 18:32
@xymus xymus merged commit 5f8338f into swiftlang:main Mar 9, 2023
@xymus xymus deleted the access-level-import-note branch March 9, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants