summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 0d79f8f..97d5f09 100644
--- a/parse.c
+++ b/parse.c
@@ -801,6 +801,12 @@ static bool parse_decl_list(Parser *p, Declaration **decls, DeclEndKind decl_end
static bool parse_fn_expr(Parser *p, FnExpr *f) {
Tokenizer *t = p->tokr;
f->ret_decls = NULL;
+
+ {
+ /* help types.c */
+ HashTable z = {0};
+ f->instances = z;
+ }
/* only called when token is fn */
assert(token_is_kw(t->token, KW_FN));
t->token++;