diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-20 01:34:43 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-20 01:34:43 +0000 |
| commit | 24347ced45aabd3ce4f4a261b8140a976cadff2e (patch) | |
| tree | 32ba1cd9ec5ce7503dd0a86ad8e417cc73324cc1 /src/parser.cpp | |
| parent | 24ca1065214f51cfbeb9c0eff98002c7d33139a2 (diff) | |
Support `any` in `match type`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
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); } |