aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index a14aeeaaf..24f540930 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1710,11 +1710,6 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
error(vd->type, "Invalid use of a polymorphic type '%s' in variable declaration", str);
gb_string_free(str);
init_type = t_invalid;
- } else if (is_type_empty_union(init_type)) {
- gbString str = type_to_string(init_type);
- error(vd->type, "An empty union '%s' cannot be instantiated in variable declaration", str);
- gb_string_free(str);
- init_type = t_invalid;
}
}