Skip to content

Split catch clause incorrectly has trailing comma #1570

@munificent

Description

@munificent

In the rare case where the formatter decides to split the parameter-list-like part of a catch clause, it appends a trailing comma. This is consistent with other places in the language.

However, it appears that catch clauses don't actually allow a trailing comma there, so the result is invalid syntax. As with type parameter and type argument lists, it shouldn't put a trailing comma here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions