summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 17c9819..206e59a 100644
--- a/parse.c
+++ b/parse.c
@@ -621,6 +621,7 @@ static bool parse_type(Parser *p, Type *type) {
err_print(param->where, "Struct parameters must be constant.");
goto struct_fail;
}
+ param->flags |= DECL_IS_PARAM;
}
}
if (!token_is_kw(t->token, KW_LBRACE)) {
@@ -934,6 +935,7 @@ static bool parse_fn_expr(Parser *p, FnExpr *f) {
success = false;
goto ret;
}
+ param->flags |= DECL_IS_PARAM;
}
}