Skip to content

[Property Wrappers] Fix a diagnostic crash when a parameter has a wrapped value mismatch. #37093

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 28, 2021

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 27, 2021

If there's an error in property wrapper application, the backing property wrapper type request will return a null type, which would cause the compiler to crash when the property wrapper is applied to a parameter because most error recovery code expects ErrorType. If the wrapper application has an error, use the interface type of the parameter instead.

Resolves: SR-14305

…pped value

mismatch.

If there's an error in property wrapper application, the backing property
wrapper type request will return a null type, which would cause the compiler
to crash because most error recovery code expects ErrorType. If the wrapper
application has an error, use the interface type of the parameter instead.
@hborla hborla requested a review from xedin April 27, 2021 20:07
@hborla
Copy link
Member Author

hborla commented Apr 27, 2021

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Apr 27, 2021

@swift-ci please smoke test macOS platform

1 similar comment
@hborla
Copy link
Member Author

hborla commented Apr 27, 2021

@swift-ci please smoke test macOS platform

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