Skip to content

No code completion for extension methods #10264

Closed
@prolativ

Description

@prolativ

Minimized code

object Bar

extension (bar: Bar.type) def xxxx: Int = 1

implicit class BarOps(bar: Bar.type) {
  def yyyy: Int = 2
}
Bar.xx

Output

When pressing TAB in REPL, the method xxxx is not suggested.

Expectation

Bar.xx should expand to Bar.xxxx just as Bar.yy expands to Bar.yyyy. The issue is not specific to REPL however. This doesn't work with Metals either.

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