From 17e4aede3465ccda89d935a186d5c401be1af157 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 29 Apr 2021 18:04:16 +0200 Subject: [PATCH] :bug: More on effects --- src/parse/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/check.c b/src/parse/check.c index 00201261..a82abd75 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1135,7 +1135,7 @@ ANN static m_bool check_stmt_return(const Env env, const Stmt_Exp stmt) { if(isa(ret_type, env->func->def->base->ret_type) > 0) return GW_OK; if(tflag(ret_type, tflag_noret)) - ERR_B(stmt->val->pos, _("Can't use type `{+G}%s{+G}` for return")); + ERR_B(stmt->val->pos, _("Can't use type `{+G}%s{+G}` for return"), ret_type->name); if(stmt->val) { if(env->func->def->base->xid == insert_symbol("@implicit") && ret_type == env->func->def->base->args->type) ERR_B(stmt_self(stmt)->pos, _("can't use implicit casting while defining it")) -- 2.43.0