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
When a function has multiple member constraints, fantomas will remove the 'and' leading to invalid F# code
Code
namespaceBlahmoduleFoo =val inlinesum:('a -> ^value) ->'a Foo ->^valuewhen^value :(static member(+):^value * ^value -> ^value)and^value :(static member Zero :^value)
Error
Fantomas was able to format the code but the result appears to be invalid F# code.
Please openan issue.
Formatted result:namespaceBlahmoduleFoo =val inlinesum:('a -> ^value) ->'a Foo ->^value when ^value:(static member(+):^value*^value->^value)^value:(static member Zero:^value)
The text was updated successfully, but these errors were encountered:
JackMatusiewicz
changed the title
Fantomas removes the 'and' if there are multiple type constraints on a generic
Fantomas removes the 'and' if there are multiple member constraints on a function declaration
Jun 4, 2020
nojaf
added a commit
to nojaf/fantomas
that referenced
this issue
Jun 12, 2020
Issue created from fantomas-online
When a function has multiple member constraints, fantomas will remove the 'and' leading to invalid F# code
Code
Error
Options
Fantomas Master at 06/02/2020 18:39:46 - eee0f32
IndentSpaceNum
4
PageWidth
120
SemicolonAtEndOfLine
false
SpaceBeforeParameter
true
SpaceBeforeLowercaseInvocation
true
SpaceBeforeUppercaseInvocation
false
SpaceBeforeClassConstructor
false
SpaceBeforeMember
false
SpaceBeforeColon
false
SpaceAfterComma
true
SpaceBeforeSemicolon
false
SpaceAfterSemicolon
true
IndentOnTryWith
false
SpaceAroundDelimiter
true
MaxIfThenElseShortWidth
40
MaxInfixOperatorExpression
50
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxLetBindingWidth
40
MultilineBlockBracketsOnSameColumn
false
NewlineBetweenTypeDefinitionAndMembers
false
KeepIfThenInSameLine
false
StrictMode
false
The text was updated successfully, but these errors were encountered: