Skip to content

[Property Wrappers] Fix availability inference for enclosing self property wrappers. #36934

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
Apr 16, 2021

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 15, 2021

If a property wrapper accessor is synthesized using the enclosing-self subscript, infer availability from accessors on the subscript declaration rather than the wrapped/projected value declaration in the property wrapper.

Resolves: rdar://76557679

…ng the

enclosing-self subscript, infer availability from accessors on the subscript
declaration.
@hborla hborla requested a review from slavapestov April 15, 2021 19:51
@hborla
Copy link
Member Author

hborla commented Apr 15, 2021

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Apr 15, 2021

@swift-ci please test source compatibility

@hborla hborla merged commit 0445ff9 into swiftlang:main Apr 16, 2021
@hborla hborla deleted the enclosing-self-availability branch April 16, 2021 04:41
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