*fixed a variable assignment bug when it was holding a routine; *updated osx binary.

This commit is contained in:
Wang Renxin 2016-01-14 20:59:53 +08:00
parent 4c9ae52049
commit baec8134eb
3 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@ Fixed a collection accessing bug in an assignment statement
Fixed a lambda unreferencing issue
Fixed a lambda evaluation bug with upvalues from meta class
Fixed a routine disposing issue
Fixed a variable assignment bug when it was holding a routine
Fixed a missing assignment bug with class field accessor
Fixed an issue with lambda when a class instance went out of use
Removed support of storing a literal instance in a variable

View File

@ -7971,9 +7971,13 @@ _retry:
mb_assert(0 && "Impossible.");
}
} else if(obj->data.variable->data->type == _DT_ROUTINE) {
if(ast && ast->next && _IS_FUNC(ast->next->data, _core_open_bracket)) {
obj = obj->data.variable->data;
goto _retry;
} else {
result = _core_let(s, (void**)&ast);
}
} else {
/* Do not need to path */
result = _core_let(s, (void**)&ast);

Binary file not shown.