diff options
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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."); |