diff --git a/core/src/main/scala/com/avsystem/commons/misc/Bidirectional.scala b/core/src/main/scala/com/avsystem/commons/misc/Bidirectional.scala index 4ab928fec..e8968ec01 100644 --- a/core/src/main/scala/com/avsystem/commons/misc/Bidirectional.scala +++ b/core/src/main/scala/com/avsystem/commons/misc/Bidirectional.scala @@ -1,7 +1,16 @@ package com.avsystem.commons package misc -/** Creates reversed partial function. */ +/** Creates reversed partial function. + * + * @deprecated + * `Bidirectional` is being removed in the Scala 3 release of scala-commons. The whitebox macro has no Scala 3 + * counterpart; write the reversed `PartialFunction` manually at call sites. + */ +@deprecated( + "Bidirectional will be removed in the Scala 3 release of scala-commons. Write the reversed PartialFunction manually.", + since = "2.29.0", +) object Bidirectional { def apply[A, B](pf: PartialFunction[A, B]): (PartialFunction[A, B], PartialFunction[B, A]) = macro com.avsystem.commons.macros.misc.BidirectionalMacro.impl[A, B]