summaryrefslogtreecommitdiff
path: root/test/files/run/tuple-zipped.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-27 07:24:46 -0700
committerPaul Phillips <paulp@improving.org>2012-04-27 07:24:46 -0700
commit1c3f66b6f2d41c02cc2bc32cb696aafa56b71176 (patch)
treeafd2ec64dc39ac29c2fc15221e431d2d8548a9e7 /test/files/run/tuple-zipped.scala
parent57574bb10833e90338bd0eadef9dabe260b8afda (diff)
downloadscala-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/run/tuple-zipped.scala')
-rw-r--r--test/files/run/tuple-zipped.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/tuple-zipped.scala b/test/files/run/tuple-zipped.scala
index 08dcc82de6..a9851346bc 100644
--- a/test/files/run/tuple-zipped.scala
+++ b/test/files/run/tuple-zipped.scala
@@ -15,7 +15,7 @@ object Test {
def main(args: Array[String]): Unit = {
for (cc1 <- xss1 ; cc2 <- xss2) {
- val sum1 = (cc1 zip cc2) map { case (x, y) => x + y } sum
+ val sum1 = (cc1, cc2).zip map { case (x, y) => x + y } sum
val sum2 = (cc1, cc2).zipped map (_ + _) sum
assert(sum1 == sum2)