Skip to content

Commit 3327038

Browse files
committed
Exhaustivity on EmptyTuple patterns
1 parent c11e671 commit 3327038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src-bootstrapped/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ object Tuple {
161161
def apply(): EmptyTuple = scala.runtime.Tuple0.asInstanceOf[EmptyTuple]
162162

163163
/** Matches an empty tuple. */
164-
def unapply(x: EmptyTuple): Boolean = x == scala.runtime.Tuple0
164+
def unapply(x: EmptyTuple): true = true
165165

166166
/** Convert an array into a tuple of unknown arity and types */
167167
def fromArray[T](xs: Array[T]): Tuple = {

0 commit comments

Comments
 (0)