summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2016-07-07 14:10:40 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2016-07-07 14:10:40 +0200
commitbd9654d4a22bcccbd98d0f33699ece25f2c0904a (patch)
tree722eadab17e129f127ac01f94099c4b3ff91ba6b
parent6e9faf5157132ad575c98e5a9a0919ac38b7beb8 (diff)
downloadscala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.tar.gz
scala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.tar.bz2
scala-bd9654d4a22bcccbd98d0f33699ece25f2c0904a.zip
[squash] Fix bounds in contains
-rw-r--r--src/library/scala/util/Either.scala2
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
}