forgot to revert a small change
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 6 Aug 2021 19:59:21 +0000 (14:59 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 6 Aug 2021 19:59:21 +0000 (14:59 -0500)
bin/onyx
src/onyxutils.c

index 55b3613d75b8d21768e0ca37ac61cc39dd4d3163..f63a1aec542cfb2fefdd73be9e6837acce87689b 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index b2f741fcded9ea774b667c007837479c7daf9577..77b926436ef41ae6dee1b99635f45a5f9dd90671 100644 (file)
@@ -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;