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
Hello, this rings a bell.
If I recall correctly, the main problem is that we format each SynPat.Or inside a clause slightly differently using ASTContext. ASTContext is evil, however:
/// This type consists of contextual information which is important for formatting
/// Please avoid using this record as it can be the cause of unexpected behavior when used incorrectly
typeASTContext=
I think this problem could be solved by removing that record field and trying to format SynPat.Or differently when encountered in the pattern of a clause handler.
Found this while formatting the F# compiler. It's not a blocker, see workaround below
Issue created from fantomas-online
Code
Result
Problem description
Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.
Workaround
The workaround is to parenthesize, e.g.
Extra information
Options
Fantomas master branch at 2022-05-30T18:11:41Z - 5e92752
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?
The text was updated successfully, but these errors were encountered: