From 318c9db495d653b1c93a49e7cd55d92689fa5291 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 11 Mar 2021 03:38:36 +0100 Subject: [PATCH] :wrench: Windows things --- src/parse/check.c | 9 +++++++-- util | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 6dd23878..c914f29f 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -545,10 +545,15 @@ ANN static void print_arg(Arg_List e) { ANN2(1) static void function_alternative(const Env env, const Type f, const Exp args, const loc_t pos){ if(env->context->error) // needed for ufcs return; - env_err(env, pos, _("argument type(s) do not match for function.")); + loc_header(pos, env->name); + loc_header(pos, env->name); + gw_err(_("argument type(s) do not match for function {+/}%s{0}.\n"), + s_name(f->info->func->def->base->xid)); + loc_err(pos, env->name); + gw_err("\nalternative:\n"); Func up = f->info->func; do { - gw_err("{-}(%s){0} ", up->name); + gw_err(" {-}(%s){0} ", up->name); const Arg_List e = up->def->base->args; if(e) print_arg(e); diff --git a/util b/util index 4015b0ce..26c87099 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 4015b0ce51e899befdf8dd049f13cdbee2f85f57 +Subproject commit 26c870998fb67d5e0eaa8a46b7cde4d5745de40f -- 2.43.0