From d552643f111551cc93f9596402211c8ea0d70bda Mon Sep 17 00:00:00 2001 From: Judah Caruso Date: Fri, 8 Dec 2023 02:32:47 +0000 Subject: [PATCH] swap flag from const to comptime --- compiler/src/types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.25.1