Skip to content

[CodeCompletion] Don’t compute type relations if the contextual type is Any #59021

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
May 24, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 23, 2022

Computing type relations to 'Any' is not very enlightning because everything would be convertible to it. If the contextual type is 'Any', just report all type relations as 'Unknown'.

rdar://64812321
rdar://84684686

…is `Any`

Computing type relations to 'Any' is not very enlightning because everything would be convertible to it. If the contextual type is 'Any', just report all type relations as 'Unknown'.

rdar://64812321
rdar://84684686
@ahoppen ahoppen requested a review from rintaro May 23, 2022 14:17
@ahoppen
Copy link
Member Author

ahoppen commented May 23, 2022

@swift-ci Please smoke test

@ahoppen ahoppen merged commit 4130bff into swiftlang:main May 24, 2022
@ahoppen ahoppen deleted the pr/no-type-relation-for-any branch May 24, 2022 09:10
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