- Fix regression in Time diff due to operator overloading #2124

- Add `Duration * Int` and `Clock - Clock` overload.
This commit is contained in:
Christoffer Lerno
2025-05-06 22:33:39 +02:00
parent 3f07d1c7b8
commit 584a8a2e60
7 changed files with 59 additions and 42 deletions

View File

@@ -1779,6 +1779,7 @@ static Decl *sema_find_exact_typed_operator_in_list(Decl **methods, OperatorOver
FOREACH(Decl *, func, methods)
{
if (func == skipped) continue;
if (!decl_ok(func)) continue;
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;