File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -257,22 +257,17 @@ sealed trait NonEmptyTuple extends Tuple {
257
257
/** Get the i-th element of this tuple.
258
258
* Equivalent to productElement but with a precise return type.
259
259
*/
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 ] =
262
261
runtime.Tuples .apply(this , n).asInstanceOf [Elem [This , n.type ]]
263
262
264
263
/** 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 ] =
267
265
runtime.Tuples .apply(this , 0 ).asInstanceOf [Head [This ]]
268
266
269
267
/** Get the tail of this tuple.
270
268
* This operation is O(this.size)
271
269
*/
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 ] =
276
271
runtime.Tuples .tail(this ).asInstanceOf [Tail [This ]]
277
272
278
273
}
You can’t perform that action at this time.
0 commit comments