Skip to content

Add a test for a destructured union with tuple members #46656

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
Dec 7, 2021

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Nov 3, 2021

This is test-only PR. I've noticed this awesome, awesome PR and went testing it right away, looking through the added tests etc. There was no test like this so I wasn't sure if this would work by looking at tests alone and I've decided to just add them after verifying that this works.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 3, 2021
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@sandersn
Copy link
Member

sandersn commented Dec 7, 2021

@Andarist is this still needed? Does it test anything that's not in #46266's tests?

@sandersn sandersn self-assigned this Dec 7, 2021
@Andarist
Copy link
Contributor Author

Andarist commented Dec 7, 2021

@sandersn feel free to decide if it’s worth merging or if this is duplicating the tests from that other PR. When i’ve seen that PR being merged into your main branch i’ve went to look up the added tests and I wasn’t sure if the destructured array pattern would behave the same as destructured object pattern. So i’ve decided to add this test and check out what happens - for you both patterns might be almost the same, for me, a user who tried to use tests as docs, it wasnt that obvious

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

I think this test is useful -- it certainly looked to me as if it covers interesting cases.

@sandersn sandersn merged commit 6722ef1 into microsoft:main Dec 7, 2021
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants