fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
770 stars 191 forks source link

Inserts unnecessary parentheses #2855

Open cmeeren opened 1 year ago

cmeeren commented 1 year ago

Issue created from fantomas-online

Code

a.MyMethod(b, fun () -> c)

Result

a.MyMethod(b, (fun () -> c))

Problem description

The parentheses around the lambda are not needed.

Extra information

Options

Fantomas main branch at 1/1/1990

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?