diff --git a/src/interpreter/functions.rs b/src/interpreter/functions.rs index d5820e3..826903e 100644 --- a/src/interpreter/functions.rs +++ b/src/interpreter/functions.rs @@ -44,7 +44,7 @@ impl Callable for Function { let param_env = InterpreterState { environment: Environment::create_child(&self.env), globals: es.globals.clone(), - variables: es.variables, + locals: es.locals, }; for (arg, value) in izip!(self.params.iter(), arguments.into_iter()) { param_env