From bd9654d4a22bcccbd98d0f33699ece25f2c0904a Mon Sep 17 00:00:00 2001 From: Simon Ochsenreither Date: Thu, 7 Jul 2016 14:10:40 +0200 Subject: [squash] Fix bounds in contains --- src/library/scala/util/Either.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3