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
Fantomas was able to format the code but the result appears to be invalid F# code.
Please openan issue.
Formatted result:letfuncs=
fse.MembersFunctionsAndValues
|> Seq.sortWith
(fun n1 n2 ->letmodifierScore(f:FSharpMemberOrFunctionOrValue)=if f.IsProperty
thenif f.IsInstanceMember thenif f.IsDispatchSlot then9else1else8elif f.IsMember
thenif f.IsInstanceMember thenif f.IsDispatchSlot then11else2else10else3letn1Score= modifierScore n1
letn2Score= modifierScore n2
if n1Score = n2Score then n1.DisplayName.CompareTo n2.DisplayName else n1Score.CompareTo n2Score)
Problem description
if f.IsProperty
thenif f.IsInstanceMember thenif f.IsDispatchSlot then9else1else8
I think the short if/then syntax invalid if the if branch contains a short if/then/else.
Something along those lines.
Issue created from fantomas-online
Code
Error
Problem description
I think the short if/then syntax invalid if the if branch contains a short if/then/else.
Something along those lines.
Check out our Contribution Guidelines.
Extra information
Options
Fantomas Master at 11/07/2020 09:02:01 - de55bd9
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: