Skip to content

enclosingSourceSymbols returns parent symbol for pattern matches #11919

@tgodzik

Description

@tgodzik

Compiler version

3.0.0-RC1

Minimized code

object A:
  val (fir@@st, second) = (1, 2)

When using Interactive.enclosingSourceSymbols for the position at @@ we get symbol for the object A.

Output

This results in Metals showing

object A: (Int, Boolean)

Expectation

first: Int

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions