Skip to content

Commit b850f2a

Browse files
committed
Remove some transparent form Tuple
1 parent 5e489ea commit b850f2a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

library/src/scala/Tuple.scala

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,22 +257,17 @@ sealed trait NonEmptyTuple extends Tuple {
257257
/** Get the i-th element of this tuple.
258258
* Equivalent to productElement but with a precise return type.
259259
*/
260-
// FIXME remove transparent
261-
transparent inline def apply[This >: this.type <: NonEmptyTuple](n: Int): Elem[This, n.type] =
260+
inline def apply[This >: this.type <: NonEmptyTuple](n: Int): Elem[This, n.type] =
262261
runtime.Tuples.apply(this, n).asInstanceOf[Elem[This, n.type]]
263262

264263
/** Get the head of this tuple */
265-
// FIXME remove transparent
266-
transparent inline def head[This >: this.type <: NonEmptyTuple]: Head[This] =
264+
inline def head[This >: this.type <: NonEmptyTuple]: Head[This] =
267265
runtime.Tuples.apply(this, 0).asInstanceOf[Head[This]]
268266

269267
/** Get the tail of this tuple.
270268
* This operation is O(this.size)
271269
*/
272-
// FIXME remove transparent
273-
// fails in tests/run/tuples1a.scala
274-
// https://github.com/lampepfl/dotty/issues/11236
275-
transparent inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] =
270+
inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] =
276271
runtime.Tuples.tail(this).asInstanceOf[Tail[This]]
277272

278273
}

0 commit comments

Comments
 (0)