We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b3fb0 commit c4fb0acCopy full SHA for c4fb0ac
library/src-3.x/scala/Tuple.scala
@@ -50,7 +50,7 @@ object Tuple {
50
}
51
52
/** Type of the element a position N in the tuple X */
53
- type Elem[X <: Tuple, N] = X match {
+ type Elem[X <: Tuple, N <: Int] = X match {
54
case x *: xs =>
55
N match {
56
case 0 => x
@@ -59,7 +59,7 @@ object Tuple {
59
60
61
/** Literal constant Int size of a tuple */
62
- type Size[X] <: Int = X match {
+ type Size[X <: Tuple] <: Int = X match {
63
case Unit => 0
64
case x *: xs => S[Size[xs]]
65
0 commit comments