clarify error message more
authorJudah Caruso <judahrcr@gmail.com>
Thu, 7 Dec 2023 23:30:38 +0000 (23:30 +0000)
committerJudah Caruso <judahrcr@gmail.com>
Thu, 7 Dec 2023 23:30:38 +0000 (23:30 +0000)
compiler/src/types.c

index ee17680ab1a53b0cfcf54115a4f53b7705c9e8c3..ee5ed9695cb9f64e965b947441ce9f6f4b4ad202 100644 (file)
@@ -383,7 +383,7 @@ static Type* type_build_from_ast_inner(bh_allocator alloc, AstType* type_node, b
 
                 if (!valid) {
                     if (!(a_node->count_expr->flags & Ast_Flag_Const)) {
-                        onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant expression.");
+                        onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant.");
                     }
                     else {
                         onyx_report_error(a_node->token->pos, Error_Critical, "Array type size expression must be 'i32', got '%s'.",