From 45f0051c50949744fd1a52313fbf48a944f49c10 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 29 Apr 2025 23:55:41 -0400 Subject: Fix parser err --- src/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse.c') diff --git a/src/parse.c b/src/parse.c index a1b54b73..12fafc0c 100644 --- a/src/parse.c +++ b/src/parse.c @@ -568,7 +568,7 @@ type_ast_t *parse_func_type(parse_ctx_t *ctx, const char *pos) { const char *start = pos; if (!match_word(&pos, "func")) return NULL; spaces(&pos); - expect_str(&pos, "(", "I expected a parenthesis here"); + expect_str(ctx, start, &pos, "(", "I expected a parenthesis here"); arg_ast_t *args = parse_args(ctx, &pos); spaces(&pos); type_ast_t *ret = match(&pos, "->") ? optional(ctx, &pos, parse_type) : NULL; -- cgit v1.2.3