Skip to content

[Bug] Trailing commas are being removed from typedef declarations. #1721

Open
@alejandro-all-win-software

Description

If the bug is about the formatter producing output you don't like, please use the "Formatting issue" template.

Describe the issue

I have the trailing_commas option set to preserve, so I expect any commas I add to remain intact. However, when I try to add a comma to a typedef, regardless of its length, the comma is removed.

To Reproduce

For example, I have the following typedef: when I add a comma after url, it gets removed.

typedef RawPhoto = ({DateTime addedAt, String name, String url});

Expected behavior

I expect that when using the trailing_commas option set to preserve, no commas should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions