summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-11-03 19:33:48 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-11-03 19:33:48 -0500
commitdb354b0994e4606d8f27e17dc24dbc81f0113c7a (patch)
treeebc727cf2298ecd13052f000ad0fb49cc0aa5cf1 /types.c
parent7a135cb2d258fee49880d3dd9f5f43096bd73331 (diff)
started to get user-defined types to work with pointers to future types
Diffstat (limited to 'types.c')
-rw-r--r--types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.c b/types.c
index 4b86e34..7756585 100644
--- a/types.c
+++ b/types.c
@@ -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;