diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-27 07:24:46 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-27 07:24:46 -0700 |
commit | 1c3f66b6f2d41c02cc2bc32cb696aafa56b71176 (patch) | |
tree | afd2ec64dc39ac29c2fc15221e431d2d8548a9e7 /test/files/neg | |
parent | 57574bb10833e90338bd0eadef9dabe260b8afda (diff) | |
download | scala-1c3f66b6f2d41c02cc2bc32cb696aafa56b71176.tar.gz scala-1c3f66b6f2d41c02cc2bc32cb696aafa56b71176.tar.bz2 scala-1c3f66b6f2d41c02cc2bc32cb696aafa56b71176.zip |
Revert "Moved ancillary methods off specialized traits."
This reverts commit 1d0372f84f9a7325a47beb55169cc454895ef74b.
I forgot about polymorphic dispatch. Have to seek another way.
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 395eda7442..32491766d7 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)) => Int - required: (Int, Int, Int) => Int - override def tupled: (Int, Int, Int) => Int = super.tupled - ^ + found : ((Int, Int)) => Int + required: (Int, Int) => Int + override def tupled: (Int, Int) => Int = super.tupled + ^ one error found diff --git a/test/files/neg/t5067.scala b/test/files/neg/t5067.scala index 0a961d2f40..f8235c0e83 100644 --- a/test/files/neg/t5067.scala +++ b/test/files/neg/t5067.scala @@ -1,4 +1,4 @@ -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 +class Foo extends Function2[Int, Int, Int] { + def apply(x: Int, y: Int) = x + y + override def tupled: (Int, Int) => Int = super.tupled } |