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

[Sema] Fix a couple of property override crashers #30792

Merged
merged 2 commits into from Apr 3, 2020

Conversation

hamishknight
Copy link
Collaborator

@hamishknight hamishknight commented Apr 3, 2020

Adjust buildStorageReference to handle metatype self parameters, and to ignore property wrapper mutability when not accessing via the wrapped value.

Resolves SR-12443 & SR-12456.
Resolves rdar://problem/61090634.

Only apply the relevant property wrapper mutability
when we're performing an access via the wrapped
value.
Before attempting to get the superclass of a
self parameter type, check to see if we have a
metatype, and perform the necessary unwrapping and
re-wrapping if needed.
@hamishknight
Copy link
Collaborator Author

@swift-ci please test

@apple apple deleted a comment from swift-ci Apr 3, 2020
@apple apple deleted a comment from swift-ci Apr 3, 2020
@apple apple deleted a comment from swift-ci Apr 3, 2020
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