From: Brendan Hansen Date: Fri, 6 Aug 2021 19:59:21 +0000 (-0500) Subject: forgot to revert a small change X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=515b8df85f1a80b0a81094903e8a9f7195f8169a;p=onyx.git forgot to revert a small change --- diff --git a/bin/onyx b/bin/onyx index 55b3613d..f63a1aec 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/src/onyxutils.c b/src/onyxutils.c index b2f741fc..77b92643 100644 --- a/src/onyxutils.c +++ b/src/onyxutils.c @@ -1084,8 +1084,8 @@ AstTyped* find_matching_overload_by_arguments(bh_arr(OverloadOption) overloads, // NOTE: Overload is not something that is known to be overloadable. if (overload == NULL) continue; if (overload->kind != Ast_Kind_Function) continue; - // if (overload->type == NULL) continue; - // assert(overload->type->kind == Type_Kind_Function); + if (overload->type == NULL) continue; + assert(overload->type->kind == Type_Kind_Function); // NOTE: If the arguments cannot be placed successfully in the parameters list if (!fill_in_arguments(&args, (AstNode *) overload, NULL)) continue;