mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 12:52:49 -04:00
Support any in match type
This commit is contained in:
1 parent
24ca106521
commit
24347ced45
8 files changed
+191
-134
No files matched your search
+1
-1
@@ -2514,7 +2514,7 @@ AstNode *parse_type_case_clause(AstFile *f) {
|
||||
Token token = f->curr_token;
|
||||
AstNodeArray clause = make_ast_node_array(f);
|
||||
if (allow_token(f, Token_case)) {
|
||||
array_add(&clause, parse_expr(f, false));
|
||||
array_add(&clause, parse_type(f));
|
||||
} else {
|
||||
expect_token(f, Token_default);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user