-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AccessRequests] Allow Init accessor to be internal
#72857
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
5aef6c0
to
da5dd94
Compare
internal
@swift-ci please test |
@li3zhen1 Sorry it took so long! Would you mind fixing the test-case that is failing or should I? |
@swift-ci please test |
// These are only called from designated initializers. | ||
return AccessLevel::Private; | ||
// These are only called from within the same module. | ||
return std::min(storage->getFormalAccess(), AccessLevel::Internal); |
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.
Why this change?
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.
The init accessor should be accessible within the module but it's currently impossible to use it across different files in the module.
@swift-ci please test |
internal
.Resolves #71578