Skip to content

Untupled parameters marked as synthetic #16110

@tgodzik

Description

@tgodzik

Compiler version

3.2.0

Minimized code

List(1,2,3).zipWithIndex.map { (x, y) =>
  println(x)
}

Output

x is marked as Synthetic both in the definition and in usage, which makes metals not show it to the user. We filter out synthetic symbols, since it usually meant that the symbol doesn't exist in the code.

Also the tree at x is a ValDef with a zero span, which means that we can't properly check if namePos contains the current cursor position.

Expectation

Neither x nor y is synthetic.

Anyone can point me to the change that caused it? It was working ok in 3.1.3

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