summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index a0ed884..254d687 100644
--- a/parse.c
+++ b/parse.c
@@ -621,6 +621,11 @@ static bool parse_type(Parser *p, Type *type) {
err_print(param->where, "Struct parameters must be constant.");
goto struct_fail;
}
+ if (param->flags & DECL_INFER) {
+ /* TODO(eventually) */
+ err_print(param->where, "Struct parameters cannot be inferred (yet).");
+ goto struct_fail;
+ }
param->flags |= DECL_IS_PARAM;
}
}