summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-04 18:04:05 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-04 18:04:05 -0500
commitfa91b896505f2c35e35ddcb7b1fb61bf0eb6f815 (patch)
tree3c0b97c55251d6f6a741c09c6a9b81b1000f78bc /scope.c
parent3350b49826dcdf046835ec70a954122e1c21855d (diff)
namespaces seem to be working now
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.c b/scope.c
index ed70875..d04d1d8 100644
--- a/scope.c
+++ b/scope.c
@@ -65,7 +65,7 @@ static bool block_enter(Block *b, Statement *stmts, U16 flags) {
Declaration *decl = &stmt->decl;
if (!add_ident_decls(b, decl, flags))
ret = false;
- } else if (stmt->kind == STMT_INCLUDE) {
+ } else if ((stmt->flags & STMT_TYPED) && stmt->kind == STMT_INCLUDE) {
if (!block_enter(b, stmt->inc.stmts, flags))
return false;
}