Skip to content

[Sema] Allow if/switch expressions in optional chain assignments #65915

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
May 15, 2023

Conversation

hamishknight
Copy link
Contributor

Make sure we look through a wrapping OptionalEvaluationExpr and its injections when looking for an assignment to mark a valid if/switch source expression.

rdar://109305454
Resolves #65906

Make sure we look through a wrapping
`OptionalEvaluationExpr` and its injections when
looking for an assignment to mark a valid if/switch
source expression.

rdar://109305454
@hamishknight
Copy link
Contributor Author

@swift-ci please 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.

if/switch expressions aren't allowed with an optional chain assignment
2 participants