Another fix to #2226

This commit is contained in:
Christoffer Lerno
2025-06-23 00:36:15 +02:00
parent aff3a3f746
commit 0d147a48b2
2 changed files with 41 additions and 0 deletions

View File

@@ -1807,6 +1807,7 @@ static OverloadMatch sema_find_typed_operator_in_list(SemaContext *context, Decl
if (func->func_decl.operator != operator_overload) continue;
if (parent_type && parent_type != typeget(func->func_decl.type_parent)) continue;
if ((overload_type & func->func_decl.overload_type) == 0) continue;
if (candidate == func) continue;
OverloadMatch match = OVERLOAD_MATCH_WILDCARD;
if (!func->func_decl.is_wildcard_overload)
{