X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fset_func.c;h=c6ab80fd0ac091aead128c5ad432751bd62f3fbd;hb=6708d7f169e6675203bf63568d40e888a4f4e209;hp=21189bff33668f8b35e4ec32ab5d7ec2e74bbdc7;hpb=b78637d9020222f1032349f231c0dc84a69797bc;p=m6w6%2Fext-psi diff --git a/src/types/set_func.c b/src/types/set_func.c index 21189bf..c6ab80f 100644 --- a/src/types/set_func.c +++ b/src/types/set_func.c @@ -204,7 +204,8 @@ static inline bool psi_set_func_validate_to_recursive(struct psi_data *data, bool psi_set_func_validate(struct psi_data *data, struct psi_set_func *func, struct psi_set_exp *set, struct psi_impl *impl, struct psi_decl *cb_decl) { - if (!psi_decl_var_validate(data, func->var, NULL, impl->decl, NULL, set) + if (!func->var->arg + && !psi_decl_var_validate(data, func->var, impl, impl->decl, NULL, set) && !psi_decl_var_validate(data, func->var, NULL, cb_decl, NULL, NULL) && !psi_impl_get_temp_let_arg(impl, func->var)) { data->error(data, func->var->token, PSI_WARNING,