diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-12-28 16:14:44 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-12-28 16:14:44 +0100 |
| commit | 422600a693021788a4b22a7a0affef91cf0ffa6c (patch) | |
| tree | f019de7f9b723321bff725619dc12f5c9622a3ab /src/server/methods.odin | |
| parent | 42284ca9e24f0d034dcde10deb5c0ddc79f1894e (diff) | |
Forgot to check if the first argument is valid on fake methods.
Diffstat (limited to 'src/server/methods.odin')
| -rw-r--r-- | src/server/methods.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/methods.odin b/src/server/methods.odin index df0d1cc..62d2cb4 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, |