You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftoCsvFlat[A<:Product](a: A)(usingm: scala.deriving.Mirror.ProductOf[A]) = {
defflatTuple(any: Any):Tuple= any matchcasep: Product=> p.productIterator.map(flatTuple).foldLeft(EmptyTuple:Tuple)(_ ++ _)
case a =>Tuple1(a)
valtuple= flatTuple(Tuple.fromProductTyped(a)).toList
}
Output:
-- [E007] TypeMismatchError:/workspace/bisect/test.scala:6:51---------------6|valtuple= flatTuple(Tuple.fromProductTyped(a)).toList
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|Found:List[Tuple.Union[(?1:Tuple)]]
|Required:List[
|Tuplematch {
|caseEmptyTuple=>Nothing|case h *: t => h | scala.Tuple.Fold[t, Nothing, [x, y] =>> x | y]
| }
|]
||where: ?1 is an unknown value of typeTuple|||Note: a matchtypecould not be fully reduced:
|| trying to reduce Tuple.Union[(?1:Tuple)]
| trying to reduce scala.Tuple.Fold[(?1:Tuple), Nothing, [x, y] =>> x | y]
| failed since selector (?1:Tuple)
| does not matchcaseEmptyTuple=>Nothing| and cannot be shown to be disjoint from it either.
|Therefore, reduction cannot advance to the remaining case||case h *: t => h | scala.Tuple.Fold[t, Nothing, [x, y] =>> x | y]
|
The text was updated successfully, but these errors were encountered:
https://scala3.westeurope.cloudapp.azure.com/job/buildCommunityProject/38542/
Scala version: 3.2.2-RC2
Bisect points to 46e3d77
Reproducer:
Output:
The text was updated successfully, but these errors were encountered: