From bdb25a73ac4e1cbafbf4e58ebb24e27d58e9abf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 15 Dec 2019 11:05:27 +0100 Subject: [PATCH] :art: Check fptr for template --- src/lib/func.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/func.c b/src/lib/func.c index cdeb24b2..c5ad8eda 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -88,6 +88,8 @@ ANN static m_bool fptr_args(const Env env, Func_Base *base[2]) { } ANN static m_bool fptr_check(const Env env, struct FptrInfo *info) { + if(!info->lhs->def->base->tmpl != !info->rhs->def->base->tmpl) + return GW_ERROR; const Type l_type = info->lhs->value_ref->from->owner_class; const Type r_type = info->rhs->value_ref->from->owner_class; if(!r_type && l_type) -- 2.43.0