diff --git a/src/parser/parser_type.c b/src/parser/parser_type.c index 83f17af5..64d5ff3c 100644 --- a/src/parser/parser_type.c +++ b/src/parser/parser_type.c @@ -639,11 +639,6 @@ Type *parse_type_formal(ParserContext *ctx, Lexer *l) { size = (int)compiled_size; } - else - { - zpanic_at(size_expr->token, "Array size must be a known compile-time constant integer"); - } - if (lexer_next(l).type != TOK_RBRACKET) { zpanic_at(lexer_peek(l), "Expected ']' in array type");