Skip to content

Commit

Permalink
Forgot to check if the first argument is valid on fake methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Dec 28, 2023
1 parent 42284ca commit 422600a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/methods.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 422600a

Please sign in to comment.