Don't parse expression on different line from return keyword
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-19 16:21:21 +02:00
parent b76548da16
commit 6f7d319148
4 changed files with 24 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ namespace Porygon::Evaluation {
auto expression = statement->GetExpression();
if (expression == nullptr) {
this->_hasReturned = true;
this -> _returnValue = nullptr;
return;
}
auto value = this->EvaluateExpression(expression);