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

Comments inside type signatures break formatting #565

Closed
Smaug123 opened this issue Nov 18, 2019 · 0 comments
Closed

Comments inside type signatures break formatting #565

Smaug123 opened this issue Nov 18, 2019 · 0 comments

Comments

@Smaug123
Copy link
Contributor

Issue created from fantomas-ui

The original code is valid; the transformed code is not, due to the indentation on the int.

Code

module Bar =
  let f a
    // foo
    : int
    =
    0

Error

module Bar =
    let f a:
    // foo
    int =
        0

Options

Fantomas Next - 3.0.1-11/13/2019

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma false
SpaceAfterSemicolon false
SpaceAroundDelimiter false
SpaceBeforeArgument false
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

No branches or pull requests

2 participants