diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-01 11:50:35 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-01 11:50:35 +0100 |
| commit | 4086a62167a6351a3cef32805abf1a7693bd16f7 (patch) | |
| tree | c9b5712ebab44936a1f7e56c31e0bd2f0469f6d3 /src/check_expr.cpp | |
| parent | 3a4392818448eac5b374384d30d41e0f574b274b (diff) | |
Fix showing error when not meant to
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c07a3b248..8880452e4 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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; } |