Deprecated inline generic types, deprecated tuple / triple types.

This commit is contained in:
Christoffer Lerno
2024-09-05 23:42:20 +02:00
parent ed5d338a39
commit ad0e97ab7b
8 changed files with 21 additions and 6 deletions

View File

@@ -1382,6 +1382,7 @@ static inline bool sema_analyse_typedef(SemaContext *context, Decl *decl, bool *
return true;
}
TypeInfo *info = decl->typedef_decl.type_info;
info->in_def = true;
if (!sema_resolve_type_info(context, info, RESOLVE_TYPE_DEFAULT)) return false;
decl->type->canonical = info->type->canonical;
// Do we need anything else?
@@ -1404,6 +1405,7 @@ static inline bool sema_analyse_distinct(SemaContext *context, Decl *decl, bool
// Infer the underlying type normally.
TypeInfo *info = decl->distinct;
info->in_def = true;
if (!sema_resolve_type_info(context, info, RESOLVE_TYPE_DEFAULT)) return false;
// Optional isn't allowed of course.