Skip to content

[5.5][ConstraintSystem] Bind missing member in pattern match to a hole early #38236

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
Jul 6, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 2, 2021

Cherry-pick of #38199


  • Explanation:

If lookup failed to find a member for a pattern match, let's bind
type variable representing such member to a hole right away, otherwise
there is a risk of missing other potential hole locations in pattern
function type (arguments + result type) because pattern matching
doesn't use 'applicable function' constraint.

Resolves: rdar://65667992
(cherry picked from commit c1d0036)

If lookup failed to find a member for a pattern match, let's bind
type variable representing such member to a hole right away, otherwise
there is a risk of missing other potential hole locations in pattern
function type (arguments + result type) because pattern matching
doesn't use 'applicable function' constraint.

Resolves: rdar://65667992
(cherry picked from commit c1d0036)
@xedin xedin added the r5.5 label Jul 2, 2021
@xedin xedin requested a review from a team as a code owner July 2, 2021 20:05
@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2021

@swift-ci please clean test

@xedin
Copy link
Contributor Author

xedin commented Jul 3, 2021

@swift-ci please nominate

@xedin xedin merged commit b3e9330 into swiftlang:release/5.5 Jul 6, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants