Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
Loading