Skip to content

Commit 5e489ea

Browse files
committed
Document failures
1 parent bd41f01 commit 5e489ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TupleOps {
5050
def tupleMergeSort(tuple: Tuple): Tuple =
5151
if (tuple.size <= 1) tuple
5252
else {
53-
val (tuple1, tuple2) = tuple.splitAt(tuple.size / 2): (Tuple, Tuple) // FIXME remove ascription
53+
val (tuple1, tuple2) = tuple.splitAt(tuple.size / 2)
5454
val (sorted1, sorted2) = (tupleMergeSort(tuple1), tupleMergeSort(tuple2))
5555
tupleMerge(sorted1, sorted2)
5656
}

library/src/scala/Tuple.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ sealed trait Tuple extends Product {
7070
* consisting of the first n elements, and the tuple `(an+1, ..., am)` consisting
7171
* of the remaining elements.
7272
*/
73-
inline def splitAt[This >: this.type <: Tuple](n: Int): Split[This, n.type] =
73+
// FIXME remove transparent
74+
// failure in bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala
75+
transparent inline def splitAt[This >: this.type <: Tuple](n: Int): Split[This, n.type] =
7476
runtime.Tuples.splitAt(this, n).asInstanceOf[Split[This, n.type]]
7577
}
7678

@@ -268,6 +270,8 @@ sealed trait NonEmptyTuple extends Tuple {
268270
* This operation is O(this.size)
269271
*/
270272
// FIXME remove transparent
273+
// fails in tests/run/tuples1a.scala
274+
// https://github.com/lampepfl/dotty/issues/11236
271275
transparent inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] =
272276
runtime.Tuples.tail(this).asInstanceOf[Tail[This]]
273277

0 commit comments

Comments
 (0)