Skip to content
Discussion options

You must be logged in to vote

-Vprint:typer or -Vprint:inlining tells you what it did.

        {
          val x$proxy1: EqProxy[Option[String], String] =
            EqProxy.given_EqProxy_Option_B[String, String](<:<.refl[String])
          x$proxy1
        }

So A and B are both String.

Your result happens to implicate Option[A], and you expect a result in Option[String], so that aligns.

Edit: I see maybe you think your type args to summon are the args to your given def, so -Vprint clears that up.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NPCRUS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants