From: Judah Caruso Date: Fri, 8 Dec 2023 02:32:47 +0000 (+0000) Subject: swap flag from const to comptime X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d552643f111551cc93f9596402211c8ea0d70bda;p=onyx.git swap flag from const to comptime --- diff --git a/compiler/src/types.c b/compiler/src/types.c index ee5ed969..805f7102 100644 --- a/compiler/src/types.c +++ b/compiler/src/types.c @@ -382,7 +382,7 @@ static Type* type_build_from_ast_inner(bh_allocator alloc, AstType* type_node, b count = get_expression_integer_value(a_node->count_expr, &valid); if (!valid) { - if (!(a_node->count_expr->flags & Ast_Flag_Const)) { + if (!(a_node->count_expr->flags & Ast_Flag_Comptime)) { onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant."); } else {