Skip to content

Commit 49f1ed0

Browse files
committed
Add experimental annotation to new operations
1 parent aadd952 commit 49f1ed0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/scala/deriving/Mirror.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ 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
5556
def fromProductTyped[A <: scala.Product](a: A)(using m: ProductOf[A], ev: p.MirroredElemTypes =:= m.MirroredElemTypes): T =
5657
p.fromProduct(a)
5758

5859
/** Create a new instance of type `T` with elements taken from tuple `t`. */
60+
@annotation.experimental
5961
def fromTuple(t: p.MirroredElemTypes): T =
6062
p.fromProduct(t)
6163
}

0 commit comments

Comments
 (0)