mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix in parameter check.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define COMPILER_VERSION "0.3.96"
|
||||
#define COMPILER_VERSION "0.3.97"
|
||||
Reference in New Issue
Block a user