-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
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