Skip to content

Commit

Permalink
Restore binary compatibility with 1.14.0
Browse files Browse the repository at this point in the history
dbaeb80 broke binary compatibility by
making `BooleanOperators` private, this does not match the plan discussed
in #540:

> The 1.15.x series will preserve binary-compatibility with 1.14.0 but
  is expected to break source-compatibility (e.g. removing the implicit
  keyword from some definitions)

This commit implements that: BooleanOperators is public again but is
also made non-implicit.
  • Loading branch information
smarter committed Jun 3, 2020
1 parent 752879f commit 79a50b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion project/MimaSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ object MimaSettings {
)

private def removedPrivateMethods = Seq(
"org.scalacheck.Prop.BooleanOperators"
)

private def removedPrivateClasses = Seq(
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/scalacheck/Prop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ object Prop {
* values available in the current scope. See [[Prop.ExtendedBoolean]] for
* documentation on the operators. */
@deprecated("Please import Prop.propBoolean instead", since="1.14.1")
implicit private[this] def BooleanOperators(b: => Boolean): ExtendedBoolean = new ExtendedBoolean(b)
def BooleanOperators(b: => Boolean): ExtendedBoolean = new ExtendedBoolean(b)

/** Implicit conversion of Boolean values to Prop values. */
implicit def propBoolean(b: Boolean): Prop = Prop(b)
Expand Down

0 comments on commit 79a50b4

Please sign in to comment.