Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken reformat of "if" inside call (fantomas-tool 2.8.0) #288

Closed
SteveGilham opened this issue Jul 26, 2018 · 0 comments
Closed

Broken reformat of "if" inside call (fantomas-tool 2.8.0) #288

SteveGilham opened this issue Jul 26, 2018 · 0 comments

Comments

@SteveGilham
Copy link

Used fantomas --indent 2 --pageWidth 132
Before

        buff.ApplyTag(if 0 = v then "noBranches"
                      else if v = num then "allBranches"
                           else "someBranches"
                      ,from, until)

After

        buff.ApplyTag(if 0 = v then "noBranches"
                      else if v = num then "allBranches"
                      else "someBranches", from, until)

yields:
error FS0001: All branches of an 'if' expression must have the same type. This expression was expected to have type 'string', but here has type ''a * 'b * 'c'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants