diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-30 19:47:31 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-30 19:47:31 -0400 |
commit | 7f15c97521f48dc0df13f69b3312ef68443b8ad9 (patch) | |
tree | 1594772783445bb3ae1e77464ef6409f1ae3a9d4 /types.c | |
parent | fd60019b95dd4dbc3d1f61a3f914d80dde248ed1 (diff) |
fixed type expressions
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; + } } } |