Skip to content

Instantly share code, notes, and snippets.

@mavnn
Last active December 19, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mavnn/5926078 to your computer and use it in GitHub Desktop.
Save mavnn/5926078 to your computer and use it in GitHub Desktop.
Fantomas test cases - notice brackets around the tuple deconstruction. The error only seems to occur once the tuple splits between two lines.
let (assemblyReferencesToDelete, frameworkReferencesToDelete, contentFilesToDelete, buildFilesToDelete) =
let assemblyReferencesToDelete, frameworkReferencesToDelete, contentFilesToDelete, buildFilesToDelete =
1, 2, 3, 4
1, 2, 3, 4
let assemblyReferencesToDelete, frameworkReferencesToDelete, contentFilesToDelete, buildFilesToDelete =
let assemblyReferencesToDelete, frameworkReferencesToDelete, contentFilesToDelete, buildFilesToDelete =
1, 2, 3, 4
1, 2, 3, 4
@dungpa
Copy link

dungpa commented Jul 12, 2013

Can you explain what is the error here? I don't see any difference while formatting the expressions above (except the parentheses around the let-bound tuple).

@mavnn
Copy link
Author

mavnn commented Jul 12, 2013

That is the only difference; I've tried to simplify the test cases above. The first example (with parentheses) works fine, but the reformatting of the second results in a incomplete let block error.

Thanks for having a look!

@ovatsus
Copy link

ovatsus commented Jul 12, 2013

What version of F# are you using? Both versions worked fine for me in VS2012

@dungpa
Copy link

dungpa commented Jul 12, 2013

This works fine for me in VS2012 as well.

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