diff options
Diffstat (limited to 'src/check_expr.c')
| -rw-r--r-- | src/check_expr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/check_expr.c b/src/check_expr.c index a8f5fe55b..04f246532 100644 --- a/src/check_expr.c +++ b/src/check_expr.c @@ -1132,6 +1132,12 @@ void check_map_type(Checker *c, Type *type, AstNode *node) { gbAllocator a = c->allocator; { + // NOTE(bill): The preload types may have not been set yet + if (t_map_key == NULL) { + init_preload(c); + } + GB_ASSERT(t_map_key != NULL); + Type *entry_type = make_type_struct(a); /* |