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

Symbol.matchingSymbol returns wrong symbol #374

Closed
adpi2 opened this issue Oct 31, 2023 · 0 comments · Fixed by #375
Closed

Symbol.matchingSymbol returns wrong symbol #374

adpi2 opened this issue Oct 31, 2023 · 0 comments · Fixed by #375
Assignees
Labels
bug Something isn't working

Comments

@adpi2
Copy link
Member

adpi2 commented Oct 31, 2023

trait A:
  def m(x: Int): Boolean = ???

class B extends A:
  def m: Boolean

Using TASTy Query:

val classB = ??? // symbol[class B]
val mInTraitA = ??? // symbol[trait A.m]
mInTraitA.matchingSymbol(classB, classB).get // symbol[class B.m]

The returned matching symbol is incorrect, it should return symbol[trait A.m].

@adpi2 adpi2 added the bug Something isn't working label Oct 31, 2023
@sjrd sjrd self-assigned this Oct 31, 2023
sjrd added a commit to sjrd/tasty-query that referenced this issue Oct 31, 2023
bishabosha added a commit that referenced this issue Oct 31, 2023
Fix #374: Fix matchesType between MethodType and Type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants