aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-11-30 20:34:42 +0000
committergingerBill <bill@gingerbill.org>2017-11-30 20:34:42 +0000
commit1a75dfe07513359352985429d6c687327a4b0b73 (patch)
treef7d0a85615370ab0f44e6764abecb9e5b7711c37 /src/check_stmt.cpp
parente00d88d82efc5f3400b158a5f601ea6c73214442 (diff)
Remove `vector` type (will be replaced by something else in the future)
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 98798b75d..6dd2bcdaa 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -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;