Reset return value flag on reference assignment

This commit is contained in:
Jason Turner
2015-08-13 13:45:31 -06:00
parent 04e2256c92
commit 8f98e16e5e

View File

@@ -436,6 +436,7 @@ namespace chaiscript
else if (this->children[1]->text == ":=") {
if (lhs.is_undef() || Boxed_Value::type_match(lhs, rhs)) {
lhs.assign(rhs);
lhs.reset_return_value();
} else {
throw exception::eval_error("Mismatched types in equation");
}