}
return v;
} else if(env->func && GET_FLAG(env->func->def, global)) {
- if(!SAFE_FLAG(value, abstract) && value->owner)
+ if(!SAFE_FLAG(value, abstract) && !SAFE_FLAG(value, arg))
ERR_O(exp_self(primary)->pos,
_("non-global variable '%s' used from global function."), s_name(primary->d.var))
}
if(!var->value) {
const Value v = new_value(p, list->type, var->xid ? s_name(var->xid) : (m_str)__func__);
if(list->td)
- v->flag = list->td->flag;
+ v->flag = list->td->flag | ae_flag_arg;
return v;
}
var->value->type = list->type;