diff --git a/schala-lang/language/src/tree_walk_eval/evaluator.rs b/schala-lang/language/src/tree_walk_eval/evaluator.rs
index da453a6..5769fb7 100644
--- a/schala-lang/language/src/tree_walk_eval/evaluator.rs
+++ b/schala-lang/language/src/tree_walk_eval/evaluator.rs
@@ -40,14 +40,14 @@ impl<'a, 'b> Evaluator<'a, 'b> {
//TODO need to handle breaks, returns, etc.
let mut ret = None;
for stmt in statements.into_iter() {
- if let Some(MemoryValue::Primitive(prim)) = self.statement(stmt)? {
+ if let Some(prim) = self.statement(stmt)? {
ret = Some(prim);
}
}
Ok(if let Some(ret) = ret { ret } else { self.expression(Expression::unit())? })
}
- fn statement(&mut self, stmt: Statement) -> EvalResult