Skip to content

Bug: inconsistent spacing before attributes of (polymorphic) variants #1297

@pascutto

Description

@pascutto

Maybe related to #1295 but I'm not certain, so submitting a new issue. Under default profile and 0.13.0, I get the following formatting, where polymorphic variants do not have a space before their attributes, while simple variants do, which does not seem right.

type classic = Variant [@attr]

type polymorphic = [ `Variant[@attr] ]

I personally prefer the former (with whitespace) solution, and I don't think it can lead to ambiguous situations.

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