}
return v;
} else if(env->func && GET_FLAG(env->func->def, global)) {
- if(!SAFE_FLAG(value, abstract) && !SAFE_FLAG(value, arg))
+ if(!SAFE_FLAG(value, abstract) && value->owner)
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 | ae_flag_arg;
+ v->flag = list->td->flag;
return v;
}
var->value->type = list->type;