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 /test/files/neg | |
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 'test/files/neg')
-rw-r--r-- | test/files/neg/t5067.check | 8 | ||||
-rw-r--r-- | test/files/neg/t5067.scala | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/files/neg/t5067.check b/test/files/neg/t5067.check index 32491766d7..395eda7442 100644 --- a/test/files/neg/t5067.check +++ b/test/files/neg/t5067.check @@ -1,6 +1,6 @@ t5067.scala:3: error: type mismatch; - found : ((Int, Int)) => Int - required: (Int, Int) => Int - override def tupled: (Int, Int) => Int = super.tupled - ^ + found : ((Int, Int, Int)) => Int + required: (Int, Int, Int) => Int + override def tupled: (Int, Int, Int) => Int = super.tupled + ^ one error found diff --git a/test/files/neg/t5067.scala b/test/files/neg/t5067.scala index f8235c0e83..0a961d2f40 100644 --- a/test/files/neg/t5067.scala +++ b/test/files/neg/t5067.scala @@ -1,4 +1,4 @@ -class Foo extends Function2[Int, Int, Int] { - def apply(x: Int, y: Int) = x + y - override def tupled: (Int, Int) => Int = super.tupled +class Foo extends Function3[Int, Int, Int, Int] { + def apply(x: Int, y: Int, z: Int) = x + y + z + override def tupled: (Int, Int, Int) => Int = super.tupled } |