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 11package scala .runtime
22
3+ import scala .annotation .experimental
4+
35object Tuples {
46
57 inline val MaxSpecialized = 22
@@ -422,11 +424,13 @@ object Tuples {
422424 }
423425 }
424426
427+ @ experimental
425428 def init (self : NonEmptyTuple ): Tuple = (self : Any ) match {
426429 case xxl : TupleXXL => xxlInit(xxl)
427430 case _ => specialCaseInit(self)
428431 }
429432
433+ @ experimental
430434 def last (self : NonEmptyTuple ): Any = (self : Any ) match {
431435 case self : Product => self.productElement(self.productArity - 1 )
432436 }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import com.typesafe.tools.mima.core.ProblemFilters._
44
55object MiMaFilters {
66 val Library : Seq [ProblemFilter ] = Seq (
7+ // Experimental APIs that can be added in 3.2.0
78 ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.runtime.Tuples.init" ),
89 ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.runtime.Tuples.last" )
910 )
You can’t perform that action at this time.
0 commit comments