diff options
Diffstat (limited to 'test/files/run/Course-2002-02.scala')
-rw-r--r-- | test/files/run/Course-2002-02.scala | 2 |
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) } |