rescript-compiler
rescript-compiler copied to clipboard
Weird formatting when coercing types with `:>`
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
Also, it seems strange to have trailing comma for the function arguments (LongModuleName.make( ~a=1, ~b="",))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.