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

Add tests case for function check type being correctly paranthesized in quick info #48836

Merged
merged 1 commit into from
May 4, 2022

Conversation

Andarist
Copy link
Contributor

closes #48729

I've noticed that this already works in nightly and narrowed it down to 4.7.0-dev.20220406, see the playground.

Then I was able to bisect this to 7da80d7 introduced by #48112 . I think that the improvement comes from refactoring common parenthesizeMemberOfConditionalType into specialized functions like parenthesizeCheckTypeOfConditionalType & co.

I didn't see any specific test case added/adjusted in this PR that would be specific to this situation so I've decided to add one, cc @rbuckton

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Apr 25, 2022
@DanielRosenwasser DanielRosenwasser merged commit 9469f95 into microsoft:main May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
None yet
3 participants