diff options
author | xuwei-k <6b656e6a69@gmail.com> | 2013-07-24 14:30:20 +0900 |
---|---|---|
committer | xuwei-k <6b656e6a69@gmail.com> | 2013-07-24 14:30:20 +0900 |
commit | 4cdeaba593ef1cd397235948743fd9dd0c41c3c8 (patch) | |
tree | c24ccc0eb8762d82b8383b62e764342b737c17d8 /src/library | |
parent | 56b7c0f8fa6c1037905867aec88520476dbd3baa (diff) | |
download | scala-4cdeaba593ef1cd397235948743fd9dd0c41c3c8.tar.gz scala-4cdeaba593ef1cd397235948743fd9dd0c41c3c8.tar.bz2 scala-4cdeaba593ef1cd397235948743fd9dd0c41c3c8.zip |
MergeableEither extends AnyVal
Diffstat (limited to 'src/library')
-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 1ed3f4becb..523270b31c 100644 --- a/src/library/scala/util/Either.scala +++ b/src/library/scala/util/Either.scala @@ -216,7 +216,7 @@ object Either { * r.merge: Seq[Int] // Vector(1) * }}} */ - implicit class MergeableEither[A](x: Either[A, A]) { + implicit class MergeableEither[A](val x: Either[A, A]) extends AnyVal { def merge: A = x match { case Left(a) => a case Right(a) => a |