diff options
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1183,6 +1183,11 @@ static bool types_decl(Typer *tr, Declaration *d) { success = false; goto ret; } + if (val->type->kind == TYPE_TUPLE) { + err_print(d->where, "You can't declare a new type to be a tuple."); + success = false; + goto ret; + } } } |