Skip to content

Weird formatting when coercing types with :> #7175

Open
@fhammerschmidt

Description

@fhammerschmidt

This line is 105 characters long so it should break before the ->LongModuleName.longFunctionName, but it does not.

(LongModuleName.makeNoParams() :> LongModuleName.subTypeOfLongTypeName)->LongModuleName.longFunctionName

This one breaks between the parameters of the make function:

// Before formatting
(LongModuleName.make(  ~a=1,  ~b="",) :> LongModuleName.subTypeOfLongTypeName)->LongModuleName.longFunctionName

// After formatting
(LongModuleName.make(
  ~a=1,
  ~b="",
) :> LongModuleName.subTypeOfLongTypeName)->LongModuleName.longFunctionName

Playground link

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