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

Failed evaluation of encoded outer #547

Open
adpi2 opened this issue Aug 2, 2023 · 0 comments
Open

Failed evaluation of encoded outer #547

adpi2 opened this issue Aug 2, 2023 · 0 comments
Labels
bug Something isn't working expression compiler

Comments

@adpi2
Copy link
Member

adpi2 commented Aug 2, 2023

With EvaluationMode.ScalaEvaluationOnly, this test fails:

test("encoded outer") {
    val source =
      """|package example
         |
         |class `A+B` {
         |  val foo = 42
         |  object && {
         |    def x = {
         |      println(foo)
         |      42
         |    }
         |  }
         |}
         |
         |object Main {
         |  def main(args: Array[String]): Unit = {
         |    val ab = new `A+B`
         |    println(ab.&&.x)
         |  }
         |}
         |""".stripMargin
    implicit val debuggee: TestingDebuggee = TestingDebuggee.mainClass(source, "example.Main", scalaVersion)
    check(Breakpoint(8), Evaluation.success("foo", 42))

The error message is:

Expected success, got LeftProjection(Left(Cannot evaluate because of failed compilation:
[error] Bad symbolic reference. A signature
[error] refers to Expressionedd69075124f47788efe591c487a9522/T in package example which is not available.
...
@adpi2 adpi2 added bug Something isn't working expression compiler labels Aug 2, 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 expression compiler
Projects
None yet
Development

No branches or pull requests

1 participant