summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 8f3f393..3d923f5 100644
--- a/parse.c
+++ b/parse.c
@@ -1061,7 +1061,7 @@ static bool parse_expr(Parser *p, Expression *e, Token *end) {
++t->token;
if (!parse_block(p, &n->body))
return false;
- n->body.flags |= BLOCK_IS_NMS;
+ /* don't set BLOCK_IS_NMS yet (done by types.c) */
arr_foreach(e->nms.body.stmts, Statement, sub) {
if (sub->kind != STMT_DECL) {
err_print(sub->where, "Only declarations can be in namespaces.");