Skip to content

Commit

Permalink
Backport "Remove experimental from Mirror#fromProductTyped" (#17353)
Browse files Browse the repository at this point in the history
Backports #16829
  • Loading branch information
Kordyjan authored Apr 27, 2023
2 parents d64378b + a55322d commit f079936
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion library/src/scala/deriving/Mirror.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ object Mirror {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ val experimentalDefinitionInLibrary = Set(
//// New feature: into
"scala.annotation.allowConversions",

//// New APIs: Mirror
// Can be stabilized in 3.3.0 or later.
"scala.deriving.Mirror$.fromProductTyped", // This API is a bit convoluted. We may need some more feedback before we can stabilize it.

//// New feature: Macro annotations
"scala.annotation.MacroAnnotation",

Expand Down

0 comments on commit f079936

Please sign in to comment.