Skip to content

Incorrect x$1 completion in anonymous function #16414

Open
@jkciesluk

Description

@jkciesluk

Compiler version

3.2.1

Minimized code

After typing x completion x$1 shows. I wouldn’t expect it to, but the code compiles

image

  List((1,2), (3,4)).map {
    (ab, _) => x$1
  }

Output

It compiles

Expectation

I wouldn’t expect both to see this completion and for the code to compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsitype:bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions