Skip to content

[Sema] Allow inference of binding to differing lvalue-ness type var… #33363

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
Aug 9, 2020

Conversation

Jumhyn
Copy link
Member

@Jumhyn Jumhyn commented Aug 7, 2020

when we have an optional type. This uncovered an error with unresolved member lookup where we allowed an unresolved value member constraint to fail if lookup failed in an optional type wrapping a type variable.

This resolves SR-13357.

@Jumhyn
Copy link
Member Author

Jumhyn commented Aug 7, 2020

@xedin This is a tentative solution for the issue I noted in #31679!

@xedin xedin self-requested a review August 7, 2020 18:22
@Jumhyn Jumhyn force-pushed the SR-13357 branch 2 times, most recently from 3b31f70 to 19ee28d Compare August 7, 2020 21:25
@Jumhyn Jumhyn force-pushed the SR-13357 branch 3 times, most recently from 4505d41 to 5cacf2c Compare August 8, 2020 01:59
@xedin
Copy link
Contributor

xedin commented Aug 8, 2020

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Aug 8, 2020

@swift-ci please test source compatibility

@swiftlang swiftlang deleted a comment from swift-ci Aug 8, 2020
@swiftlang swiftlang deleted a comment from swift-ci Aug 8, 2020
@xedin
Copy link
Contributor

xedin commented Aug 8, 2020

Looks like this also fixed a case of pattern matching to unwrapped base in case statement

when we have an optional type. This uncovered an error with unresolved member lookup where we allowed an unresolved value member constraint to fail if lookup failed in an optional type wrapping a type variable.

This resolves SR-13357.
@Jumhyn
Copy link
Member Author

Jumhyn commented Aug 8, 2020

@xedin Updated to remove the expected diagnostic, and fixed the assertion failure!

@xedin
Copy link
Contributor

xedin commented Aug 8, 2020

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Aug 8, 2020

@swift-ci please test source compatibility

@swiftlang swiftlang deleted a comment from swift-ci Aug 8, 2020
@swiftlang swiftlang deleted a comment from swift-ci Aug 8, 2020
@xedin
Copy link
Contributor

xedin commented Aug 9, 2020

@swift-ci please test source compatibility debug

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