Skip to content

[CSApply] Result coercion check should always use resolved type #41108

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 1, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 31, 2022

shouldCoerceToContextualType used solution.getType(ASTNode)
which returns a type that has type variables in it. To properly
check whether result type needs a coercion it has to be resolved
first which is done via solution.getResultType(ASTNode).

Resolves: rdar://88285682

`shouldCoerceToContextualType` used `solution.getType(ASTNode)`
which returns a type that has type variables in it. To properly
check whether result type needs a coercion it has to be resolved
first which is done via `solution.getResultType(ASTNode)`.

Resolves: rdar://88285682
@xedin xedin requested a review from hborla January 31, 2022 22:47
@xedin
Copy link
Contributor Author

xedin commented Jan 31, 2022

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Feb 1, 2022

@swift-ci please smoke test Linux platform

@xedin xedin merged commit 49ae1c7 into swiftlang:main Feb 1, 2022
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