klauso/PLT2011 — Issue #8: File lecturenotes/8-rcfae.scala contains errors
Author: thewilli
Created: 2011-11-19 18:00:19+00:00
State: open

The following errors occur when trying to load the file in the Scala interpreter:

:41: error: type mismatch;
found : Value
required: Value
case Id(x) => env(x)

:54: error: type mismatch;
found : Value
required: Value

case ClosureV(f,closureEnv) => eval(f.body, closureEnv + (f.param ->eval(a,env)))

:59: error: type mismatch;
found : Value
required: Value
mutableenv += x -> eval(e,mutableenv) // evaluate e and then create cycle in the environment

:37: error: not found: value eval
assert(eval(sum, Map.empty) == NumV(55))