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

Inconsistent indentation of multiline records with internal keyword when fsharp_multiline_block_brackets_on_same_column is on/off #1171

Closed
3 tasks
Fizzixnerd opened this issue Sep 27, 2020 · 0 comments · Fixed by #1175

Comments

@Fizzixnerd
Copy link
Contributor

Issue created from fantomas-online

Code

namespace Bar

type A =
    internal
        { ALongIdentifier: string
          YetAnotherLongIdentifier: bool }

Result

Without MultilineBlockBracketsOnSameColumn

namespace Bar

type A =
    internal { ALongIdentifier: string
               YetAnotherLongIdentifier: bool }

With MultilineBlockBracketsOnSameColumn

namespace Bar

type A =
    internal
        {
            ALongIdentifier: string
            YetAnotherLongIdentifier: bool
        }

Problem description

internal should be on its own line (like in the second case) both times, I believe. In either case, it probably shouldn't be different between the cases.

Extra information

  • The formatted result breaks by code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas Master at 09/26/2020 18:28:15 - 0771e9a

Default Fantomas configuration (and with MultilineBlockBracketsOnSameColumn = true)

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

Successfully merging a pull request may close this issue.

2 participants