Skip to content

Commit 18a04c8

Browse files
committed
wip
1 parent e57c86b commit 18a04c8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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 = {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def test(t: Tuple) =
2+
t match
3+
case Tuple() =>
4+
case head *: tail =>

0 commit comments

Comments
 (0)