Skip to content

Commit f079936

Browse files
authored
Backport "Remove experimental from Mirror#fromProductTyped" (#17353)
Backports #16829
2 parents d64378b + a55322d commit f079936

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

library/src/scala/deriving/Mirror.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ object Mirror {
5252

5353
extension [T](p: ProductOf[T])
5454
/** Create a new instance of type `T` with elements taken from product `a`. */
55-
@annotation.experimental
5655
def fromProductTyped[A <: scala.Product, Elems <: p.MirroredElemTypes](a: A)(using m: ProductOf[A] { type MirroredElemTypes = Elems }): T =
5756
p.fromProduct(a)
5857

tests/run-custom-args/tasty-inspector/stdlibExperimentalDefinitions.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ val experimentalDefinitionInLibrary = Set(
5858
//// New feature: into
5959
"scala.annotation.allowConversions",
6060

61-
//// New APIs: Mirror
62-
// Can be stabilized in 3.3.0 or later.
63-
"scala.deriving.Mirror$.fromProductTyped", // This API is a bit convoluted. We may need some more feedback before we can stabilize it.
64-
6561
//// New feature: Macro annotations
6662
"scala.annotation.MacroAnnotation",
6763

0 commit comments

Comments
 (0)