fixed function resolution issue pointed out by markjreed
This commit is contained in:
parent
4e12f33afa
commit
f4ba7daf49
|
@ -1682,14 +1682,14 @@ ValueObject *interpretFuncCallExprNode(ExprNode *node,
|
|||
ScopeObject *dest = NULL;
|
||||
ScopeObject *target = NULL;
|
||||
|
||||
target = getScopeObjectLocal(scope, scope, expr->name);
|
||||
dest = getScopeObject(scope, scope, expr->scope);
|
||||
|
||||
target = getScopeObjectLocal(scope, dest, expr->name);
|
||||
if (!target) return NULL;
|
||||
|
||||
outer = createScopeObjectCaller(scope, target);
|
||||
if (!outer) return NULL;
|
||||
|
||||
dest = getScopeObject(scope, scope, expr->scope);
|
||||
|
||||
def = getScopeValue(scope, dest, expr->name);
|
||||
|
||||
if (!def || def->type != VT_FUNC) {
|
||||
|
|
Loading…
Reference in New Issue