Skip to content

base keyword given backticks when overriding with argument #2212

@pbiggar

Description

@pbiggar

Issue created from fantomas-online

Code

type X =  
  override this.f(y) : bool =
    base.f(y)

Result

type X =
    override this.f(y) : bool = ``base``.f (y)

Problem description

base is given backticks by fantomas, which isn't right. Note that if there is no argument to the base method being called, base is not given backticks.

type X =
    override this.f() : bool = base.f()

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 master branch at 2022-04-25T16:08:33Z - 2d32fac

    { config with
                MaxLineLength = 80 }

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