Remove vector type (will be replaced by something else in the future)

This commit is contained in:
gingerBill
2017-11-30 20:34:42 +00:00
parent e00d88d82e
commit 1a75dfe075
15 changed files with 41 additions and 704 deletions
-12
View File
@@ -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;