Skip to content

Signature help shows wrong active parameter for methods with type params and empty param list. #19969

Closed
@rochala

Description

@rochala

Compiler version

3.4.1

Minimized code

  // file dotty/tools/pc/tests/signaturehelp/SignatureHelpSuite.scala
  @Test def `proper-param-empty-list` =
    check(
      """
        |object x {
        |  def foo[K, V](): Unit = ???
        |  foo(@@)
        |}
        |""".stripMargin,
      "foo[K, V](): Unit"
    )

Output

Last parameter is selected as current argument.

Expectation

No element should be selected as active parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpreeSuitable for a future Spreearea:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsgood first issuePerfect for someone who wants to get started contributingitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions