Skip to content

Commit c4fb0ac

Browse files
committed
Add missing bounds
1 parent b3b3fb0 commit c4fb0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src-3.x/scala/Tuple.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object Tuple {
5050
}
5151

5252
/** Type of the element a position N in the tuple X */
53-
type Elem[X <: Tuple, N] = X match {
53+
type Elem[X <: Tuple, N <: Int] = X match {
5454
case x *: xs =>
5555
N match {
5656
case 0 => x
@@ -59,7 +59,7 @@ object Tuple {
5959
}
6060

6161
/** Literal constant Int size of a tuple */
62-
type Size[X] <: Int = X match {
62+
type Size[X <: Tuple] <: Int = X match {
6363
case Unit => 0
6464
case x *: xs => S[Size[xs]]
6565
}

0 commit comments

Comments
 (0)