summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index b56895a..7268bdc 100644
--- a/parse.c
+++ b/parse.c
@@ -824,10 +824,6 @@ static bool parse_fn_expr(Parser *p, FnExpr *f) {
return false;
Declaration *new_params = NULL;
arr_foreach(f->params, Declaration, param) {
- if (param->type.kind == TYPE_TUPLE) {
- err_print(param->where, "Functions can't have tuple parameters.");
- return false;
- }
/* whenever there's (x, y: int), turn it into (x: int, y: int) */
arr_foreach(param->idents, Identifier, ident) {
Declaration *new_param = parser_arr_add(p, &new_params);