summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
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;
}