Skip to content

Fantomas introduces meaningless match block #1806

@Smaug123

Description

@Smaug123

Issue created from fantomas-online

Code

module Foo =
    let bar () =
        {
            Foo =
                blah
                |> Struct.map (fun _ (a, _, _) -> filterBackings a)
        }

Result

module Foo =
    let bar () =
        { Foo =
              blah
              |> Struct.map
                  (fun _ (a, _, _) ->
                      match _arg2 with
                      | _ ->
                          match _arg2 with
                          | _ -> filterBackings a) }

Problem description

I honestly have not the faintest idea how this could have happened, but anyway, the additional match block is not meant to be there.

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 07/01/2021 18:56:12 - 3a12872

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

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