You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The formatter is applying a trialing comma to the new explicit partial application function syntax which breaks compilation of otherwise compiling code. This only seems to happen when the line length is long enough to force a line break from the formatter.
module LongModuleName = {
let functionWithAlongNameThatWrapsTheEditorToTheNextLine = (a: int): int =>
a * 3 + 2
}
let mapWithAReallyLongName = (f: 'a => 'b, a: 'a) => {
f(a)
}
let functionThatTakesThing =
mapWithAReallyLongName(
a => LongModuleName.functionWithAlongNameThatWrapsTheEditorToTheNextLine(a),
- ...+ ...,
)
let b = functionThatTakesThing(1)
The text was updated successfully, but these errors were encountered:
The formatter is applying a trialing comma to the new explicit partial application function syntax which breaks compilation of otherwise compiling code. This only seems to happen when the line length is long enough to force a line break from the formatter.
Unformatted (Compiles)
Formatted (Syntax Error)
The text was updated successfully, but these errors were encountered: