Skip to content

Conversation

sandersn
Copy link
Member

Now starring skipParentheses

I chose to do the ad-hoc check rather than yet another tree walk.

1. It's faster to run and easier to read.
2. This error came from looking at real code. It happened twice, so I
think the best estimate for other uses that happened zero times is in
fact zero.
3. I couldn't think of other places to put the cast, given the
restrictions on `testedNode` just before the new code.
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 12, 2021
@sandersn sandersn merged commit 5deb676 into master Feb 12, 2021
@sandersn sandersn deleted the no-did-you-mean-to-call-error-on-casts branch February 12, 2021 18:08
@DanielRosenwasser DanielRosenwasser restored the no-did-you-mean-to-call-error-on-casts branch February 12, 2021 18:08
@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-4.2

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 12, 2021

Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into release-4.2 on this PR at 2a28812. You can monitor the build here.

@sandersn sandersn deleted the no-did-you-mean-to-call-error-on-casts branch February 12, 2021 18:08
@typescript-bot
Copy link
Collaborator

Hey @DanielRosenwasser, I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-4.2 manually.

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-4.2

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 16, 2021

Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into release-4.2 on this PR at 2a28812. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Hey @DanielRosenwasser, I've opened #42820 for you.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Feb 16, 2021
Component commits:
214ef0c No did-you-mean-to-call error on casts
I chose to do the ad-hoc check rather than yet another tree walk.

1. It's faster to run and easier to read.
2. This error came from looking at real code. It happened twice, so I
think the best estimate for other uses that happened zero times is in
fact zero.
3. I couldn't think of other places to put the cast, given the
restrictions on `testedNode` just before the new code.

1d34778 Merge branch 'master' into no-did-you-mean-to-call-error-on-casts

b3be79a Skip parentheses

2a28812 Merge branch 'master' into no-did-you-mean-to-call-error-on-casts
DanielRosenwasser pushed a commit that referenced this pull request Feb 16, 2021
Component commits:
214ef0c No did-you-mean-to-call error on casts
I chose to do the ad-hoc check rather than yet another tree walk.

1. It's faster to run and easier to read.
2. This error came from looking at real code. It happened twice, so I
think the best estimate for other uses that happened zero times is in
fact zero.
3. I couldn't think of other places to put the cast, given the
restrictions on `testedNode` just before the new code.

1d34778 Merge branch 'master' into no-did-you-mean-to-call-error-on-casts

b3be79a Skip parentheses

2a28812 Merge branch 'master' into no-did-you-mean-to-call-error-on-casts

Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants