Skip to content

Optional parameter lost backticks #2731

@nojaf

Description

@nojaf

Issue created from fantomas-online

Code

type [<AllowNullLiteral>] ArrayBuffer =
    abstract byteLength: int
    abstract slice: ``begin``: int * ?``end``: int -> ArrayBuffer

Result

[<AllowNullLiteral>]
type ArrayBuffer =
    abstract byteLength: int
    abstract slice: ``begin``: int * ?end: int -> ArrayBuffer

Problem description

Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.

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-01-19T07:22:18Z - 959e49b

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