Skip to content

Commit 6549e1c

Browse files
Add test case
1 parent c238097 commit 6549e1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pos/10747-shapeless-min.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
trait Monoidal {
2+
type to[_] <: Tuple
3+
}
4+
5+
object eithers extends Monoidal {
6+
class Wrap[T]
7+
8+
type to[t] <: Tuple = Wrap[t] match {
9+
case Wrap[Either[hd, tl]] => hd *: to[tl]
10+
case Wrap[Nothing] => EmptyTuple
11+
}
12+
}

0 commit comments

Comments
 (0)