Skip to content

Commit

Permalink
Make LabelledGeneric.productInst a transparent inline to allow co…
Browse files Browse the repository at this point in the history
…nsuming it on Scala 3.4+ due to constraint introduced by the compiler (#748)
  • Loading branch information
WojciechMazur authored Jul 19, 2024
1 parent 2745b9b commit 97f10ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private[pekko] object LabelledGeneric {

inline def apply[A](using l: LabelledGeneric[A]): LabelledGeneric.Aux[A, l.Repr] = l

inline given productInst[A <: Product](
transparent inline given productInst[A <: Product](
using m: Mirror.ProductOf[A])
: LabelledGeneric.Aux[A, ZipWith[m.MirroredElemLabels, m.MirroredElemTypes, FieldType]] =
new LabelledGeneric[A] {
Expand Down

0 comments on commit 97f10ab

Please sign in to comment.