Skip to content

[5.0][CSBindings] Look through optional types when trying to validate l-va… #14489

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
Feb 8, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Feb 8, 2018

…lueness of the new bindings

When bindings are picked for particular type variable, right-hand
side of the binding might be another type variable wrapped into optional
type, when trying to determine if both sides of the binding have the
same l-valueness it's imperative to look throught optional type of the
right-hand side. Otherwise new binding might be effectively unsolvable.

Resolves: rdar://problem/37291371
(cherry picked from commit c6ff7b4)

@xedin
Copy link
Contributor Author

xedin commented Feb 8, 2018

@swift-ci please smoke test and merge

@xedin xedin changed the title [CSBindings] Look through optional types when trying to validate l-va… [5.0][CSBindings] Look through optional types when trying to validate l-va… Feb 8, 2018
…lueness of the new bindings

When bindings are picked for particular type variable, right-hand
side of the binding might be another type variable wrapped into optional
type, when trying to determine if both sides of the binding have the
same l-valueness it's imperative to look throught optional type of the
right-hand side. Otherwise new binding might be effectively unsolvable.

Resolves: rdar://problem/37291371
(cherry picked from commit c6ff7b4)
@xedin xedin force-pushed the rdar-37291371-5.0 branch from fb132f1 to 0346458 Compare February 8, 2018 20:38
@xedin
Copy link
Contributor Author

xedin commented Feb 8, 2018

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 8243a7f into swiftlang:swift-5.0-branch Feb 8, 2018
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