Skip to content

Report arity errors on call target nodes #54443

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 5 commits into from
Nov 29, 2023

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented May 29, 2023

The proposed change is in the same vein as the one that got merged in #52943

I believe that shorter error spans are better. Current arity errors might span a lot of lines, especially in calls that take callback arguments or object/array literals

closes #7734

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label May 29, 2023
@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.

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 is an improvement, but I'd like to get @DanielRosenwasser 's opinion before merging.

@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jul 10, 2023
@sandersn
Copy link
Member

sandersn commented Nov 29, 2023

I looked at the results again and: my opinion is still that this is an improvement. =)
I'll merge when tests finishing running.

@sandersn sandersn merged commit e9737b8 into microsoft:main Nov 29, 2023
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
Archived in project
Development

Successfully merging this pull request may close these issues.

Editor: Excess or missing arguments in a function call highlight the whole call in red, including all anonymous function bodies
3 participants