Skip to content

Idempotency problem when comment after opening brace in inherit record #2803

Closed
@nojaf

Description

Issue created from fantomas-online

Formatted code

let range =
    { inherit // reason
        Foo()
      X = y }

Reformatted code

let range =
    { inherit Foo() // reason
      X = y }

Problem description

Fantomas was not able to produce the same code after reformatting the result.

Extra information

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

Options

Fantomas main branch at 2023-03-27T09:06:34Z - 7293a94

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions