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

Formatting of array literals of BigInteger #682

Closed
cpkio opened this issue Feb 15, 2020 · 1 comment · Fixed by #767
Closed

Formatting of array literals of BigInteger #682

cpkio opened this issue Feb 15, 2020 · 1 comment · Fixed by #767

Comments

@cpkio
Copy link

cpkio commented Feb 15, 2020

Source text:

let input = [| 1I; 0I; -1I |]

After fantomas processing:

let input = [| 1I; 0I; "-1"I |]

This problem was first noted in 3.10 and still is in 3.2.0 release.

@cpkio
Copy link
Author

cpkio commented Feb 17, 2020

Issue created from fantomas-ui

Erroneous formatting of a negative BigInteger literal.

Code

let input = [| 1I; 0I; -1I |]

Result

let input = [| 1I; 0I; -1I |]

Options

Fantomas 3.2.0

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false

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

Successfully merging a pull request may close this issue.

1 participant