forked from typelevel/scalacheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate Prop.BooleanOperators in anticipation of Dotty
For a Boolean b and a prop p, the following is ambiguous in dotty: import Prop._ b ==> p Because Prop contains: implicit def BooleanOperators(b: => Boolean) = new ExtendedBoolean(b) implicit def propBoolean(b: Boolean): Prop = Prop(b) And both ExtendedBoolean and Prop provide a `==>` method, the one in `ExtendedBoolean` just forwards to the one in `Prop`. This is not ambiguous in scalac because `Boolean` wins against `=> Boolean` but it is in dotty (and intentionally so). In general, it seems that all the methods in BooleanOperators are also available on Prop, so BooleanOperators does not serve any purpose and can be deprecated. We can then make it non-implicit in a subsequent release of scalacheck (thus breaking source-compatiblity but not binary-compatiblity) to finally be able to compile it with Dotty (which also requires getting typelevel#423 in).
- Loading branch information
Showing
9 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters