aboutsummaryrefslogtreecommitdiff
path: root/src/server/analysis.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/analysis.odin')
-rw-r--r--src/server/analysis.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index f111c5d..8956c70 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -629,6 +629,11 @@ resolve_function_overload :: proc(
call_expr := ast_context.call
+ //If there is nothing to resolve from, we actually want to get the invalid overloaded results through setting overloading to false
+ if call_expr == nil || len(call_expr.args) == 0 {
+ ast_context.overloading = false
+ }
+
candidates := make([dynamic]Symbol, context.temp_allocator)
for arg_expr in group.args {