Skip to content

enclosingSourceSymbols returns parent symbol for pattern matches #11919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tgodzik opened this issue Mar 27, 2021 · 0 comments · Fixed by #14499
Closed

enclosingSourceSymbols returns parent symbol for pattern matches #11919

tgodzik opened this issue Mar 27, 2021 · 0 comments · Fixed by #14499
Assignees

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Mar 27, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants