Skip to content

CSGen: Infer generic arguments for explicit closure result types #33663

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 2 commits into from
Aug 29, 2020

Conversation

AnthonyLatsis
Copy link
Collaborator

No description provided.

closure->getExplicitResultTypeRepr(),
TypeResolverContext::InExpression,
// Introduce type variables for unbound generics.
OpenUnboundGenericType(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please split this into two commits - first one to add OpenUnboundGenericType to the original code which is an actual functionality change here and second which does this resultTy refactoring?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy

@AnthonyLatsis AnthonyLatsis force-pushed the unbound-closure-retty branch from 491cd51 to 61d86d5 Compare August 27, 2020 19:26
@xedin
Copy link
Contributor

xedin commented Aug 27, 2020

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis changed the title CSGen: Infer generic arguments in explicit closure result types CSGen: Infer generic arguments for explicit closure result types Aug 27, 2020
@AnthonyLatsis AnthonyLatsis merged commit 5525a78 into swiftlang:master Aug 29, 2020
@AnthonyLatsis AnthonyLatsis deleted the unbound-closure-retty branch August 29, 2020 00:46
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.

3 participants