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

Comment after closing brace in nested record is lost with default settings #1172

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

Comment after closing brace in nested record is lost with default settings #1172

Fizzixnerd opened this issue Sep 27, 2020 · 0 comments · Fixed by #2047

Comments

@Fizzixnerd
Copy link
Contributor

Issue created from fantomas-online

Code

let person =
    { Name = "Nick"
      Address =
          { Street = "Tinsel Street"
            Number = 100
            PostCode = "H0H0H0" } // end address
    } // end person

Result

let person =
    { Name = "Nick"
      Address =
          { Street = "Tinsel Street"
            Number = 100
            PostCode = "H0H0H0" } } // end person

Problem description

This bug has been fixed for MultilineBlockBraceOnSameColumn = true, it seems.

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

nojaf added a commit that referenced this issue Jan 28, 2022
* Enable test `comment after closing brace in nested record`. Fixes #1172.

* Enable test `object expressions in list`, fixes #1170.
jindraivanek pushed a commit to jindraivanek/fantomas that referenced this issue Mar 30, 2022
* Enable test `comment after closing brace in nested record`. Fixes fsprojects#1172.

* Enable test `object expressions in list`, fixes fsprojects#1170.
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