Skip to content

Fix issue with 'for await' over a union type #16157

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
May 31, 2017
Merged

Fix issue with 'for await' over a union type #16157

merged 2 commits into from
May 31, 2017

Conversation

rbuckton
Copy link
Contributor

@rbuckton rbuckton commented May 30, 2017

When using for await over a union type of Iterable<T> | AsyncIterable<T> we would issue an error since the union does not have any compatible properties. This change gets the union of the iterated types of each constituent, reporting errors if any constituent is not iterable.

Fixes #16153

@rbuckton rbuckton merged commit 1cc860d into master May 31, 2017
@rbuckton rbuckton deleted the fix16153 branch May 31, 2017 03:17
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants