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

Cannot resolve member of value class #428

Closed
adpi2 opened this issue Dec 19, 2023 · 0 comments
Closed

Cannot resolve member of value class #428

adpi2 opened this issue Dec 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@adpi2
Copy link
Member

adpi2 commented Dec 19, 2023

package example

class A(self: String) extends AnyVal

In the tree of class A there is:

def equals(x$0: scala.Any): scala.Boolean = (x$0 match { case x$0 @ _: (@scala.unchecked() example.A) => A.this.self.==(x$0.self); case _ => false })"

When I try to resolve the symbol of x$0.self it throws:

ch.epfl.scala.debugadapter.internal.stacktrace.BinaryDecoderTests.local class in value class  235.727s tastyquery.Exceptions$MemberNotFoundException: Member self not found in TermRef(NoPrefix, symbol[equals>x$0])
    at tastyquery.Types$TermRef.resolve(Types.scala:1088)
    at tastyquery.Types$TermRef.ensureResolved(Types.scala:1060)
    at tastyquery.Types$TermRef.symbol(Types.scala:1056)
    at tastyquery.Trees$TermReferenceTree.symbol(Trees.scala:259)
@adpi2 adpi2 added the bug Something isn't working label Dec 19, 2023
@sjrd sjrd self-assigned this Dec 20, 2023
@sjrd sjrd closed this as completed in 038e768 Dec 20, 2023
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

No branches or pull requests

2 participants