Function overload check cleanup. Added if statement to parsing.

This commit is contained in:
2025-01-12 22:15:02 +01:00
parent ec31046d30
commit 85b23f90e5
12 changed files with 540 additions and 3 deletions

View File

@@ -1309,7 +1309,8 @@ check_call :: (checker : *Semantic_Checker, node : *AST_Node, type_var : Type_Va
function := from_handle(checker, func.type_variable);
if arg_count != function.children.count {
field_list := function.source_node.children[0];
if arg_count != field_list.children.count {
continue;
}