Skip to content

Commit c11e671

Browse files
committed
Make Tuple a Product
1 parent 7d8cc1f commit c11e671

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ class Definitions {
13961396
.updated(AnyClass, ObjectClass)
13971397
.updated(AnyValClass, ObjectClass)
13981398
.updated(SingletonClass, ObjectClass)
1399-
.updated(TupleClass, ObjectClass)
1399+
.updated(TupleClass, ProductClass)
14001400
.updated(EmptyTupleClass, ProductClass)
14011401
.updated(NonEmptyTupleClass, ProductClass)
14021402

library/src-bootstrapped/scala/Tuple.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import compiletime._
44
import internal._
55

66
/** Tuple of arbitrary arity */
7-
sealed trait Tuple extends Any {
7+
sealed trait Tuple extends Product {
88
import Tuple._
99

1010
/** Create a copy this tuple as an Array */
@@ -192,10 +192,10 @@ object Tuple {
192192
}
193193

194194
/** Tuple of arity zero */
195-
sealed trait EmptyTuple extends Tuple with Product
195+
sealed trait EmptyTuple extends Tuple
196196

197197
/** Tuple of arbitrary non-zero arity */
198-
sealed trait NonEmptyTuple extends Tuple with Product {
198+
sealed trait NonEmptyTuple extends Tuple {
199199
import Tuple._
200200

201201
/** Get the i-th element of this tuple.

0 commit comments

Comments
 (0)