Fix in parameter check.

This commit is contained in:
Christoffer Lerno
2022-10-23 23:41:03 +02:00
parent 02374c6aab
commit 2d377ada45
2 changed files with 2 additions and 2 deletions

View File

@@ -2606,7 +2606,7 @@ static bool sema_analyse_parameterized_define(SemaContext *c, Decl *decl)
{
TypeInfo *type = param->type_expr;
if (!sema_resolve_type_info(c, type)) return decl_poison(decl);
if (type->kind == TYPE_OPTIONAL)
if (type->type->type_kind == TYPE_OPTIONAL)
{
SEMA_ERROR(type, "Expected a non-optional type.");
return poisoned_decl;

View File

@@ -1 +1 @@
#define COMPILER_VERSION "0.3.96"
#define COMPILER_VERSION "0.3.97"