diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-03 19:33:48 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-03 19:33:48 -0500 |
commit | db354b0994e4606d8f27e17dc24dbc81f0113c7a (patch) | |
tree | ebc727cf2298ecd13052f000ad0fb49cc0aa5cf1 /types.c | |
parent | 7a135cb2d258fee49880d3dd9f5f43096bd73331 (diff) |
started to get user-defined types to work with pointers to future types
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1334,6 +1334,7 @@ static bool types_decl(Typer *tr, Declaration *d) { success = false; goto ret; } + if (!type_resolve(tr, val->type, d->where)) return false; if (val->type->kind == TYPE_TUPLE) { err_print(d->where, "You can't declare a new type to be a tuple."); success = false; |