summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-02.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-04-23 16:25:20 +0000
committermichelou <michelou@epfl.ch>2007-04-23 16:25:20 +0000
commitb8fc3bed09e9ebba8c9f67c5bb4a63e89b7af3a0 (patch)
treeee82b8d4eeb3f60e2db2967f1d4c47d77e136c3f /test/files/run/Course-2002-02.scala
parentbd7866c7940c41d5c4f3f88e09c7354126eabe15 (diff)
downloadscala-b8fc3bed09e9ebba8c9f67c5bb4a63e89b7af3a0.tar.gz
scala-b8fc3bed09e9ebba8c9f67c5bb4a63e89b7af3a0.tar.bz2
scala-b8fc3bed09e9ebba8c9f67c5bb4a63e89b7af3a0.zip
changed argument in &sums
Diffstat (limited to 'test/files/run/Course-2002-02.scala')
-rw-r--r--test/files/run/Course-2002-02.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/Course-2002-02.scala b/test/files/run/Course-2002-02.scala
index 86bdec31ee..9d8b8da389 100644
--- a/test/files/run/Course-2002-02.scala
+++ b/test/files/run/Course-2002-02.scala
@@ -163,7 +163,7 @@ object M7 {
iter(a, 0)
}
- def sumInts = &sum(_)
+ def sumInts = &sum(x => x)
def sumCubes = &sum(x => x * x * x)
def sumReciprocals = &sum(x => 1.0/x)
def sumPi = { n: Int => 4 + sum(x => 4.0/(4*x+1) - 4.0/(4*x-1))(1, n) }