Skip to content

Comment after bar is lost in single case DU #2182

@nojaf

Description

@nojaf

Issue created from fantomas-online

Code

type LongIdentWithDots =
    | //[<Experimental("This construct is subject to change in future versions of FSharp.Compiler.Service and should only be used if no adequate alternative is available.")>]
      LongIdentWithDots of
        leadingId: LongIdent *
        operatorName: OperatorName option *
        trailingId: LongIdent *
        dotRanges: range list

Result

type LongIdentWithDots =
    | LongIdentWithDots of
        leadingId: LongIdent *
        operatorName: OperatorName option *
        trailingId: LongIdent *
        dotRanges: range list

Problem description

Trivia should be assigned to the BarRange.

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 branch at 2022-04-01T14:31:49Z - b6828ff

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