Skip to content

Commit c7ee07c

Browse files
committed
Fix Elem method for sizes > 23
This used to give an index-out-of-bounds error.
1 parent 194d85d commit c7ee07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src-scala3/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ abstract sealed class NonEmptyTuple extends Tuple {
342342

343343
rewrite def apply(n: Int): Elem[this.type, n.type] = {
344344
type Result = Elem[this.type, n.type]
345-
rewrite constValueOpt[BoundedSize[this.type]] match {
345+
rewrite constValueOpt[Size[this.type]] match {
346346
case Some(1) =>
347347
val t = asInstanceOf[Tuple1[_]]
348348
rewrite constValueOpt[n.type] match {

0 commit comments

Comments
 (0)