aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-20 01:34:43 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-20 01:34:43 +0000
commit24347ced45aabd3ce4f4a261b8140a976cadff2e (patch)
tree32ba1cd9ec5ce7503dd0a86ad8e417cc73324cc1 /src/parser.cpp
parent24ca1065214f51cfbeb9c0eff98002c7d33139a2 (diff)
Support `any` in `match type`
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index d794f86eb..a50edb6c4 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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);
}