Don't parse expression on different line from return keyword
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user