Skip to content

Allow trailing commas on lambda type parameter lists #59612

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

Conversation

weswigham
Copy link
Member

Fixes #59587

We don't want trailing commas on most type parameter lists, since they're not required, but in lambdas they may be needed for syntactic disambiguation in .tsx, so we should preserve them on them.

@weswigham weswigham merged commit 03bca1d into microsoft:main Aug 13, 2024
32 checks passed
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Printer introduces syntax error into .tsx files
3 participants