Skip to content
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

SIL: Ignore AEIC on package declaration inside declarations without effective public access #73708

Conversation

aschwaighofer
Copy link
Member

Quoting Slava:

"The AST-level access is allowed to be 'more public'. I honestly don't know why, but it's always worked this way and the 'lowered' access levels must always intersect the access levels of the parents but with @UIC, @aeic and @inlinable, that means just ignoring those attributes if some enclosing context is not @UIC"

rdar://128270848

…ffective public access

Quoting Slava:

"The AST-level access is allowed to be 'more public'. I honestly don't
know why, but it's always worked this way and the 'lowered' access
levels must always intersect the access levels of the parents but with
@UIC, @aeic and @inlinable, that means just ignoring those attributes if
some enclosing context is not @UIC"

rdar://128270848
@aschwaighofer
Copy link
Member Author

@swift-ci test

@nkcsgexi
Copy link
Member

Shouldn't we diagnose the no-opness of AEIC at the AST level?

@aschwaighofer
Copy link
Member Author

No, apparently (and surprisingly) this is “expected” behavior. See Slava’s quote.

@aschwaighofer
Copy link
Member Author

The change here is to mirror the existing behavior of internal in the case of package accces.

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.

None yet

2 participants