Skip to content

“FS0058: Possible incorrect indentation” on function composition after running Fantomas #1341

@lydell

Description

@lydell

Issue created from fantomas-online

Code

(f >> g) (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, c)

Result

(f >> g) (
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
    c
)

Problem description

Formatting the input results in:

FS0058: Possible incorrect indentation, this token is offside of context ...

Workaround: Call f and g normally instead of composing them together first.

I found this when upgrading from Fantomas 4.0 to 4.3 at work.

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 12/26/2020 15:00:23 - 76fa31e

    { config with
                SemicolonAtEndOfLine = true }

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