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 cabfa68 commit 877958eCopy full SHA for 877958e
library/src/scala/Tuple.scala
@@ -89,7 +89,8 @@ object Tuple {
89
}
90
91
/** Type of the head of a tuple */
92
- type Head[X <: NonEmptyTuple] = X match {
+ type Head[X <: Tuple] = X match {
93
+ case EmptyTuple => EmptyTuple
94
case x *: _ => x
95
96
@@ -101,7 +102,8 @@ object Tuple {
101
102
103
104
/** Type of the tail of a tuple */
- type Tail[X <: NonEmptyTuple] <: Tuple = X match {
105
+ type Tail[X <: Tuple] <: Tuple = X match {
106
107
case _ *: xs => xs
108
109
0 commit comments