diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2016-07-07 14:10:40 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2016-07-07 14:10:40 +0200 |
commit | bd9654d4a22bcccbd98d0f33699ece25f2c0904a (patch) | |
tree | 722eadab17e129f127ac01f94099c4b3ff91ba6b /src | |
parent | 6e9faf5157132ad575c98e5a9a0919ac38b7beb8 (diff) | |
download | scala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.tar.gz scala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.tar.bz2 scala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.zip |
[squash] Fix bounds in contains
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/util/Either.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/util/Either.scala b/src/library/scala/util/Either.scala index 6da39692c5..5c61d83a1a 100644 --- a/src/library/scala/util/Either.scala +++ b/src/library/scala/util/Either.scala @@ -214,7 +214,7 @@ sealed abstract class Either[+A, +B] extends Product with Serializable { * @param elem the element to test. * @return `true` if the option has an element that is equal (as determined by `==`) to `elem`, `false` otherwise. */ - final def contains[AA >: A](elem: AA): Boolean = this match { + final def contains[BB >: B](elem: BB): Boolean = this match { case Right(b) => b == elem case Left(_) => false } |