diff options
Diffstat (limited to 'test-nsc/files/run/Course-2002-07.scala')
-rwxr-xr-x | test-nsc/files/run/Course-2002-07.scala | 2 |
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) |