forked from scalatest/scalatest
-
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.
Support right-bias of
Either
in EitherValues
* scala/scala#5135 - `Either` became right-biased in Scala 2.12 * scala/scala#6682 - `either.right` becomes a deprecated field with Scala 2.13 With Scala 2.13, it's no longer possible to test an `Either`'s right value using ScalaTest's `EitherValues` without getting a deprecating warning - ie writing: ``` either.right.value should be > 9 ``` will give you this on compile: ``` method right in class Either is deprecated (since 2.13.0): Either is now right-biased, use methods directly on Either ``` Given that `Either` is now right-biased, this change gives us the ability to write: ``` either.value should be > 9 ```
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 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