Skip to content

[Diagnostics] Attempt .rawValue fix only if both types are equally … #35291

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 7, 2021

…optional

This is a follow-up to #35072.

Let's wait until both sides are equally optional before attempting
.rawValue fix, otherwise there is a risk that a valid code would
get diagnosed.

Extend test coverage of possible .rawValue situations to
contextual and argument positions to make sure that valid
code is accepted.

Resolves: SR-13951

…optional

This is a follow-up to swiftlang#35072.

Let's wait until both sides are equally optional before attempting
`.rawValue` fix, otherwise there is a risk that a valid code would
get diagnosed.

Extend test coverage of possible `.rawValue` situations to
contextual and argument positions to make sure that valid
code is accepted.

Resolves: SR-13951
@xedin xedin requested a review from hborla January 7, 2021 17:07
@xedin
Copy link
Contributor Author

xedin commented Jan 7, 2021

@swift-ci please smoke test

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