mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-14 23:21:25 -07:00
Remove vector type (will be replaced by something else in the future)
This commit is contained in:
@@ -606,13 +606,6 @@ void check_switch_stmt(Checker *c, AstNode *node, u32 mod_flags) {
|
||||
token.string = str_lit("true");
|
||||
x.expr = ast_ident(c->curr_ast_file, token);
|
||||
}
|
||||
if (is_type_vector(x.type)) {
|
||||
gbString str = type_to_string(x.type);
|
||||
error(x.expr, "Invalid switch expression type: %s", str);
|
||||
gb_string_free(str);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// NOTE(bill): Check for multiple defaults
|
||||
AstNode *first_default = nullptr;
|
||||
@@ -1483,11 +1476,6 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
|
||||
val1 = t_int;
|
||||
break;
|
||||
|
||||
case Type_Vector:
|
||||
val0 = t->Vector.elem;
|
||||
val1 = t_int;
|
||||
break;
|
||||
|
||||
case Type_Map:
|
||||
is_map = true;
|
||||
val0 = t->Map.key;
|
||||
|
||||
Reference in New Issue
Block a user