Skip to content

[4.2][code-completion] Don't try to equate/convert GenericTypeParameterTypes computing type relations of completion results #16288

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

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented May 1, 2018

Cherry-pick of #16265 for swift-4.2-branch

Resolves rdar://problem/38153332

…es computing type relations of completion results

For call argument completion, if the expected type and completion result type are
both GenericTypeParameterTypes, comparing them doesn't make sense we can't account
for their different contexts at this point in the code, and hit assertions in the
constraint solver if we try.

For now, don't attempt to add a type relation for this case.
Resolves rdar://problem/38153332.
@nathawes
Copy link
Contributor Author

nathawes commented May 1, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit b08fb12 into swiftlang:swift-4.2-branch May 2, 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