diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-20 01:00:24 +0100 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-24 19:59:27 -0700 |
commit | 1d0372f84f9a7325a47beb55169cc454895ef74b (patch) | |
tree | 920b95193b2cbb63b75517d67c668eda1d563a06 /src/library/scala/PartialFunction.scala | |
parent | 211df62491ada71a4a574fd2314942ab3c4a4ba8 (diff) | |
download | scala-1d0372f84f9a7325a47beb55169cc454895ef74b.tar.gz scala-1d0372f84f9a7325a47beb55169cc454895ef74b.tar.bz2 scala-1d0372f84f9a7325a47beb55169cc454895ef74b.zip |
Moved ancillary methods off specialized traits.
Moved compose/andThen off Function1, curried/tupled off Function2.
Pushed Tuple2 zipped into auxiliary class. Created implicits to
plaster over the changes. This drops several hundred classfiles and
takes (unoptimized) scala-library.jar from 7.8 Mb to 7.4 Mb.
Diffstat (limited to 'src/library/scala/PartialFunction.scala')
-rw-r--r-- | src/library/scala/PartialFunction.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/PartialFunction.scala b/src/library/scala/PartialFunction.scala index 7154b8da34..fafaef9c2f 100644 --- a/src/library/scala/PartialFunction.scala +++ b/src/library/scala/PartialFunction.scala @@ -78,7 +78,7 @@ trait PartialFunction[-A, +B] extends (A => B) { self => * @return a partial function with the same domain as this partial function, which maps * arguments `x` to `k(this(x))`. */ - override def andThen[C](k: B => C) : PartialFunction[A, C] = new PartialFunction[A, C] { + def andThen[C](k: B => C) : PartialFunction[A, C] = new PartialFunction[A, C] { def isDefinedAt(x: A): Boolean = self isDefinedAt x def apply(x: A): C = k(self(x)) } |