Browse Source

Eval: Fix mal test

The quote in the error message broke the step2 test.
master
Riyyi 2 years ago
parent
commit
cc735a7a11
  1. 2
      src/eval.cpp

2
src/eval.cpp

@ -42,7 +42,7 @@ ASTNode* Eval::evalAst(ASTNode* ast, Environment* env)
if (is<Symbol>(ast)) { if (is<Symbol>(ast)) {
auto result = env->lookup(static_cast<Symbol*>(ast)->symbol()); auto result = env->lookup(static_cast<Symbol*>(ast)->symbol());
if (!result) { if (!result) {
Error::the().addError(format("symbols function definition is void: {}", ast)); Error::the().addError(format("symbol's function definition is void: {}", ast));
} }
return result; return result;
} }

Loading…
Cancel
Save