aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/parser.c b/src/parser.c
index 49c9689..81c90da 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -375,9 +375,6 @@ Node *parse_var_declaration(Lexer *lexer)
}
if (token.type == TOKEN_ASSIGN) {
- if (is_global)
- die_location(token.loc, "Cannot initialize global variable `%s` outside function", node->var_decl.var.name);
-
node->var_decl.value = parse_expression(lexer);
if (is_missing_type) {