Skip to content

Commit db97752

Browse files
authored
Disallow returning EmptyTuple in Tuple.Head and Tuple.Tail
1 parent ab9729a commit db97752

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/src/scala/Tuple.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ object Tuple {
9090

9191
/** Type of the head of a tuple */
9292
type Head[X <: Tuple] = X match {
93-
case EmptyTuple => EmptyTuple
9493
case x *: _ => x
9594
}
9695

@@ -103,7 +102,6 @@ object Tuple {
103102

104103
/** Type of the tail of a tuple */
105104
type Tail[X <: Tuple] <: Tuple = X match {
106-
case EmptyTuple => EmptyTuple
107105
case _ *: xs => xs
108106
}
109107

0 commit comments

Comments
 (0)