-
Notifications
You must be signed in to change notification settings - Fork 1.1k
can't summon mirror for MirroredElemTypes
as it is generic tuple
#7049
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
Milestone
Comments
I think you're experiencing some strange implicit/given scope related issues rather than anything specific to |
I think this is caused by #14127, since we improved error messages, they now show -- Error: ----------------------------------------------------------------------
13 | val mt3 = summon[Mirror.ProductOf[m.MirroredElemTypes]]
| ^
|No given instance of type deriving.Mirror.ProductOf[m.MirroredElemTypes] was found for parameter x of method summon in object Predef. Failed to synthesize an instance of type deriving.Mirror.ProductOf[m.MirroredElemTypes]: class *: is not a generic product because it is not a case class
-- Error: ----------------------------------------------------------------------
16 | val g: (Int, String) = toTuple(f)// (using m, mt1)
| ^
|No given instance of type deriving.Mirror.ProductOf[(Int, String)] was found for parameter mt of method toTuple. Failed to synthesize an instance of type deriving.Mirror.ProductOf[(Int, String)]: class *: is not a generic product because it is not a case class
2 errors found |
This comment was marked as duplicate.
This comment was marked as duplicate.
MirroredElemTypes
MirroredElemTypes
MirroredElemTypes
as it is generic tuple
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Says:
That is, we can resolve the mirror of the tuple, but not if it is obtained from another mirror. To make it work:
The text was updated successfully, but these errors were encountered: