Skip to content

Transforming between case classes with context bounds #709

Discussion options

You must be logged in to vote

To be honest it was a pure accident that it worked on older versions, I believe we might have used quasiquotes somewhere and they resolved implicits during splicing - making the whole macro code unaware that there was an implicit to handle, and how to proceed when it's missing. It must've disappear while rewriting code to format that could keep behavior consistent between Scala 2.12/2.13/3.

I think it's generally an antipattern to use implicits in case classes (or use any case classes with multiple parameters lists - many libraries simply do not support this), but if you already committed to them:

  1. you can provide custom constructor which would have them applied:

    Source[Int](1)
     .into[Ta…

Replies: 1 comment

Comment options

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