From 422600a693021788a4b22a7a0affef91cf0ffa6c Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Thu, 28 Dec 2023 16:14:44 +0100 Subject: [PATCH] Forgot to check if the first argument is valid on fake methods. --- src/server/methods.odin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/methods.odin b/src/server/methods.odin index df0d1cc3..62d2cb48 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -88,6 +88,11 @@ append_method_completion :: proc( continue } + if len(value.arg_types) == 0 || + value.arg_types[0].type == nil { + continue + } + first_arg: Symbol first_arg, ok = resolve_type_expression( ast_context,