Skip to content
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

Improved handling of array access base expression union types #2696

Merged
merged 2 commits into from
May 18, 2021

Conversation

majastrz
Copy link
Member

This fixes #2248. Turns out the logic to simplify unions is not needed to fix this. However, there is still a benefit to doing it because it prevents weird types like string[] | array from being surfaced in user-visible places.

Copy link
Contributor

@shenglol shenglol left a comment

Choose a reason for hiding this comment

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

:shipit:

@majastrz majastrz merged commit 289cd9a into main May 18, 2021
@majastrz majastrz deleted the majastrz/indexing-over-array-unions branch May 18, 2021 17:45
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.

Unable to index into union type from two arrays
2 participants