summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/parse.c b/parse.c
index 9413d6a..91d61e1 100644
--- a/parse.c
+++ b/parse.c
@@ -545,10 +545,6 @@ static Status parse_type(Parser *p, Type *type, Location *where) {
err_print(slice_where, "You cannot have a slice of tuples.");
return false;
}
- if (type_is_builtin(type->slice, BUILTIN_VARARGS)) {
- err_print(slice_where, "You cannot have a slice of varargs.");
- return false;
- }
break;
}
Token *end = expr_find_end(p, 0);
@@ -562,10 +558,6 @@ static Status parse_type(Parser *p, Type *type, Location *where) {
err_print(of_where, "You cannot have an array of tuples.");
return false;
}
- if (type_is_builtin(type->arr.of, BUILTIN_VARARGS)) {
- err_print(of_where, "You cannot have an array of varargs.");
- return false;
- }
} break;
case KW_LT:
/* tuple! */
@@ -608,10 +600,6 @@ static Status parse_type(Parser *p, Type *type, Location *where) {
err_print(ptr_where, "You cannot have a pointer to a tuple.");
return false;
}
- if (type_is_builtin(type->ptr, BUILTIN_VARARGS)) {
- err_print(ptr_where, "You cannot have a pointer to varargs.");
- return false;
- }
} break;
case KW_STRUCT: {
/* struct */