Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exception when compiling with Scala 3 #585

@OndrejSpanel

Description

@OndrejSpanel

I have a quite large closed source project which I am gradually migrating to Scala 3. I get exception when compiling with Scala 3 with some of my decoders. The exception is:

Exception occurred while executing macro expansion.
java.lang.ClassCastException: class dotty.tools.dotc.ast.Trees$This cannot be cast to class dotty.tools.dotc.ast.Trees$RefTree (dotty.tools.dotc.ast.Trees$This and dotty.tools.dotc.ast.Trees$RefTree are in unnamed module of loader java.net.URLClassLoader @4c15b562)


    implicit val decoder: Decoder[V3] = deriveDecoder

I might be able to create a short repro later, but I am not sure if / when, as Scala 3 is not a priority task for me yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions