Skip to content

[ConstraintSystem] Support solving expression patterns via injecting call to ~= operator #41589

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 2 commits into from
Mar 3, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Feb 28, 2022

Augment the constraint solver to fallback to implicit ~= application
when member couldn't be found for EnumElement patterns because
case statement should be able to match enum member directly, as well
as through an implicit ~= operator application.

@xedin xedin requested a review from hborla February 28, 2022 20:47
…call to `~=` operator

Augment the constraint solver to fallback to implicit `~=` application
when member couldn't be found for `EnumElement` patterns because
`case` statement should be able to match enum member directly, as well
as through an implicit `~=` operator application.
@xedin xedin force-pushed the handle-expr-patterns-in-the-solver branch from 42ceb18 to 59154d6 Compare March 1, 2022 01:02
@xedin
Copy link
Contributor Author

xedin commented Mar 1, 2022

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Mar 1, 2022

@swift-ci please smoke test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Mar 2, 2022

@swift-ci please smoke test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Mar 2, 2022

Going to re-run macOS before merging just in case anything changed...

@xedin xedin merged commit 26d8552 into swiftlang:main Mar 3, 2022
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.

3 participants