Skip to content

Commit 7085eee

Browse files
committed
Patch tuples
1 parent 077d364 commit 7085eee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

library/src/scala/Tuple.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,20 @@ sealed trait NonEmptyTuple extends Tuple {
255255
/** Get the i-th element of this tuple.
256256
* Equivalent to productElement but with a precise return type.
257257
*/
258-
inline def apply[This >: this.type <: NonEmptyTuple](n: Int): Elem[This, n.type] =
258+
// FIXME remove transparent
259+
transparent inline def apply[This >: this.type <: NonEmptyTuple](n: Int): Elem[This, n.type] =
259260
runtime.Tuples.apply(this, n).asInstanceOf[Elem[This, n.type]]
260261

261262
/** Get the head of this tuple */
262-
inline def head[This >: this.type <: NonEmptyTuple]: Head[This] =
263+
// FIXME remove transparent
264+
transparent inline def head[This >: this.type <: NonEmptyTuple]: Head[This] =
263265
runtime.Tuples.apply(this, 0).asInstanceOf[Head[This]]
264266

265267
/** Get the tail of this tuple.
266268
* This operation is O(this.size)
267269
*/
268-
inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] =
270+
// FIXME remove transparent
271+
transparent inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] =
269272
runtime.Tuples.tail(this).asInstanceOf[Tail[This]]
270273

271274
}

0 commit comments

Comments
 (0)