Skip to content

Backticks in optional parameter gets removed #2954

@jindraivanek

Description

@jindraivanek

Issue created from fantomas-online

Code

type C() =
    static member foo(?``type``) = ``type``
        

Result

type C() =
    static member foo(?type) = ``type``

Problem description

Backticks removed in ?type - incorrect code.

Probably related to #2731.

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.
  • I would like a release if this problem is solved.

Options

Fantomas main branch at 2023-08-31T06:37:49Z - 369faf8

Default Fantomas configuration

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions