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

Weird formatting when coercing types with :> #7175

Open
fhammerschmidt opened this issue Nov 25, 2024 · 1 comment
Open

Weird formatting when coercing types with :> #7175

fhammerschmidt opened this issue Nov 25, 2024 · 1 comment
Labels

Comments

@fhammerschmidt
Copy link
Member

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

@shulhi
Copy link
Member

shulhi commented Nov 25, 2024

Also, it seems strange to have trailing comma for the function arguments (LongModuleName.make( ~a=1, ~b="",))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants