File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
library/src/scala/runtime Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
package scala .runtime
2
2
3
+ import scala .annotation .experimental
4
+
3
5
object Tuples {
4
6
5
7
inline val MaxSpecialized = 22
@@ -422,11 +424,13 @@ object Tuples {
422
424
}
423
425
}
424
426
427
+ @ experimental
425
428
def init (self : NonEmptyTuple ): Tuple = (self : Any ) match {
426
429
case xxl : TupleXXL => xxlInit(xxl)
427
430
case _ => specialCaseInit(self)
428
431
}
429
432
433
+ @ experimental
430
434
def last (self : NonEmptyTuple ): Any = (self : Any ) match {
431
435
case self : Product => self.productElement(self.productArity - 1 )
432
436
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import com.typesafe.tools.mima.core.ProblemFilters._
4
4
5
5
object MiMaFilters {
6
6
val Library : Seq [ProblemFilter ] = Seq (
7
+ // Experimental APIs that can be added in 3.2.0
7
8
ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.runtime.Tuples.init" ),
8
9
ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.runtime.Tuples.last" )
9
10
)
You can’t perform that action at this time.
0 commit comments