Skip to content

Incorrect and superfluous parameter hints in methods with optional parameters #14459

@0101

Description

@0101

image

type MyType() =

    member _.MyMethod(?beep: int, ?bap: int, ?boop: int) = ()

    member this.Foo = this.MyMethod(bap = 3, boop = 4)

Since parameters can be optional not all of them need to be present and they can be out of order. Also, if I'm already specifying them explicitly there's no need to also show hints.

Also in the method definition, hints are shown even when types are specified which is questionable.

Metadata

Metadata

Assignees

Labels

Area-LangService-HintsF# hints inspired by C# inline hintsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions