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
letu=""matchmatch u with|null->""| s -> s
with|""-> x
|_-> failwith ""
Result
letu=""matchmatch u with|null->""| s -> s with|""-> x
|_-> failwith ""
Problem description
This is absolutely hilarious, and I am going to change our code here because the pattern is absurd. But it is a bug in Fantomas, so I'll raise it; Fantomas shouldn't produce invalid F# even if the input F# was this mad.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Result
Problem description
This is absolutely hilarious, and I am going to change our code here because the pattern is absurd. But it is a bug in Fantomas, so I'll raise it; Fantomas shouldn't produce invalid F# even if the input F# was this mad.
Extra information
Options
Fantomas Master at 01/27/2021 07:36:19 - 138146e
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: