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
typeChapter()=member valTitle:string option = Unchecked.defaultof<_>with get, set
member valUrl:string = Unchecked.defaultof<_>with get, set
letc=
Chapter(
Title =iftruethen
Some ""else
None
,
Url ="")
Result
typeChapter()=member valTitle:string option = Unchecked.defaultof<_>with get, set
member valUrl:string = Unchecked.defaultof<_>with get, set
letc= Chapter(Title =iftruethen Some ""else None, Url ="")
Problem description
After formatting, this code no longer compiles. I think the issue is ambiguity with creating a tuple when the comma is on the same line as the if expression. Inserting a newline or wrapping the if expression in parenthesis fixes the compilation error.
Extra information
The formatted result breaks my code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Options
Fantomas v5.2 branch at 1/1/1990
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:
Issue created from fantomas-online
Code
Result
Problem description
After formatting, this code no longer compiles. I think the issue is ambiguity with creating a tuple when the comma is on the same line as the if expression. Inserting a newline or wrapping the if expression in parenthesis fixes the compilation error.
Extra information
Options
Fantomas v5.2 branch at 1/1/1990
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: