Fix showing error when not meant to

This commit is contained in:
gingerBill
2024-07-01 11:50:35 +01:00
parent 3a43928184
commit 4086a62167

View File

@@ -6168,7 +6168,9 @@ gb_internal CallArgumentError check_call_arguments_internal(CheckerContext *c, A
Type *t = elem;
if (is_type_polymorphic(t)) {
error(call, "Ambiguous call to a polymorphic variadic procedure with no variadic input %s", type_to_string(final_proc_type));
if (show_error) {
error(call, "Ambiguous call to a polymorphic variadic procedure with no variadic input %s", type_to_string(final_proc_type));
}
err = CallArgumentError_AmbiguousPolymorphicVariadic;
}