Skip to content

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

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 1, 2021

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

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
@xedin xedin requested a review from hborla July 1, 2021 17:02
@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2021

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2021

@swift-ci please smoke test Windows platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2021

@swift-ci please smoke test Windows 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