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

Don't add a trailing comma in lists that shouldn't have one. #1640

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

munificent
Copy link
Member

Type parameter and type argument lists don't allow trailing commas. The formatter is generally good about not adding them, but it would get tripped up if the list ended with comments (which are treated like separate elements in the list). This fixes that bug.

Fix #1639.

Type parameter and type argument lists don't allow trailing commas. The
formatter is generally good about not adding them, but it would get
tripped up if the list ended with comments (which are treated like
separate elements in the list). This fixes that bug.

Fix #1639.
@munificent munificent merged commit 110b9f7 into main Feb 1, 2025
7 checks passed
@munificent munificent deleted the 1639-trailing-comment-comma branch February 1, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatter inserts trailing comma in type parameter list with trailing comment
3 participants