Skip to content
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

Find all references doesnt work for inherited classes #2676

Closed
Ravenow opened this issue Apr 3, 2021 · 1 comment
Closed

Find all references doesnt work for inherited classes #2676

Ravenow opened this issue Apr 3, 2021 · 1 comment

Comments

@Ravenow
Copy link

Ravenow commented Apr 3, 2021

object Sample extends App {
  trait T {
    def m(): Unit
  }

  class A() extends T {
    override def m(): Unit = ???
  }

  val t: T = new A()
  t.m()
}

Try to find all usages(references) of A.m()

actual result - no usages
expected result - t.m()

Im using metals v1.10.0 with vscode 1.55

@Ravenow Ravenow closed this as completed Apr 3, 2021
@Ravenow
Copy link
Author

Ravenow commented Apr 3, 2021

sorry, just found this one scalameta/metals-feature-requests#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant