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
letGenApp(cenv:cenv)cgbuf eenv (f,fty,tyargs,curriedArgs,m)sequel =letg= cenv.g
match(f, tyargs, curriedArgs)with// Look for tailcall to turn into branch |(Expr.Val (v,_,_),_,_)whenmatch ListAssoc.tryFind g.valRefEq v eenv.innerVals with| Some (kind,_)->(not v.IsConstructor &&(* no tailcall out of exception handler, etc. *)(match sequelIgnoringEndScopesAndDiscard sequel with Return | ReturnVoid ->true|_->false))| None ->false->()
Result
letGenApp(cenv:cenv)cgbuf eenv (f,fty,tyargs,curriedArgs,m)sequel =letg= cenv.g
match(f, tyargs, curriedArgs)with// Look for tailcall to turn into branch|(Expr.Val (v,_,_),_,_)whenmatch ListAssoc.tryFind g.valRefEq v eenv.innerVals with| Some (kind,_)->(not v.IsConstructor
&&(* no tailcall out of exception handler, etc. *)(match sequelIgnoringEndScopesAndDiscard sequel with| Return
| ReturnVoid ->true|_->false))| None ->false->()
Problem description
The arrow of the clause match should be on the next line when the when expression contains a pattern match. | None -> false -> ()
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
The arrow of the clause match should be on the next line when the when expression contains a pattern match.
| None -> false -> ()
Extra information
Options
Fantomas Master at 03/26/2021 09:37:20 - 2cfd9ae
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: