summaryrefslogtreecommitdiff
path: root/test-nsc/files/run/Course-2002-07.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/run/Course-2002-07.scala')
-rwxr-xr-xtest-nsc/files/run/Course-2002-07.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-nsc/files/run/Course-2002-07.scala b/test-nsc/files/run/Course-2002-07.scala
index 5ebb1ad7ab..98f09aafb7 100755
--- a/test-nsc/files/run/Course-2002-07.scala
+++ b/test-nsc/files/run/Course-2002-07.scala
@@ -419,7 +419,7 @@ object MA {
case Prod(e1, e2) => eval(e1) * eval(e2)
}
- def evalvars(xs: List[Pair[String,int]]) = {
+ def evalvars(xs: List[Pair[String,int]]): Expr => Int = {
def loop(e: Expr): int = e match {
case Number(n) => n
case Var(name) => lookup(xs,name)