mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Fix issue #172
This commit is contained in:
@@ -3965,7 +3965,7 @@ AstNode *parse_switch_stmt(AstFile *f) {
|
||||
body = ast_block_stmt(f, list, open, close);
|
||||
|
||||
if (!is_type_match) {
|
||||
tag = convert_stmt_to_expr(f, tag, str_lit("match expression"));
|
||||
tag = convert_stmt_to_expr(f, tag, str_lit("switch expression"));
|
||||
return ast_switch_stmt(f, token, init, tag, body);
|
||||
} else {
|
||||
return ast_type_switch_stmt(f, token, tag, body);
|
||||
|
||||
Reference in New Issue
Block a user