From a535f282a52e1360701be836ba2dc94cb705484c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 7 Sep 2021 00:28:43 +0200 Subject: [PATCH] :art: Cpy op for template funcs --- src/parse/func_resolve_tmpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse/func_resolve_tmpl.c b/src/parse/func_resolve_tmpl.c index 69f5e0a4..0ffbbad5 100644 --- a/src/parse/func_resolve_tmpl.c +++ b/src/parse/func_resolve_tmpl.c @@ -109,6 +109,8 @@ ANN static Func create_tmpl(const Env env, struct ResolverArgs *ra, if (func && vflag(ra->v, vflag_builtin)) { builtin_func(env->gwion->mp, func, (void*)ra->v->d.func_ref->code->native_func); set_vflag(func->value_ref, vflag_builtin); + struct Op_Import opi = { .lhs = ra->v->d.func_ref->value_ref->type, .rhs = func->value_ref->type }; + op_cpy(env, &opi); } return func; } -- 2.43.0