Skip to content

Commit 08ff803

Browse files
committed
Fix and enable specialized tuples
1 parent 1fdd51f commit 08ff803

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/src-scala3/scala/StagedTuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ object StagedTuple {
208208
that
209209
case Some(1) =>
210210
if (thatSize.contains(0)) self
211-
else stagedCons(that, self.as[Tuple1[_]], thatSize)
211+
else stagedCons(that, '((~self).asInstanceOf[Tuple1[_]]._1), thatSize)
212212
case Some(2) =>
213213
val self2 = self.as[Tuple2[_, _]]
214214
thatSize match {

library/src-scala3/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object Tuple {
2626
inline val $MaxSpecialized = 22
2727
inline private val XXL = $MaxSpecialized + 1
2828

29-
final val specialize = false
29+
final val specialize = true
3030

3131
type Head[+X <: NonEmptyTuple] = X match {
3232
case x *: _ => x

0 commit comments

Comments
 (0)