diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-12-30 16:21:45 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-12-30 16:21:45 +0000 |
| commit | 2ecafda1d34c1157268c94d40c507b98f0070a35 (patch) | |
| tree | c3aca07a8e40dfbf905eaa09653ccdc654674c11 /src/checker/checker.c | |
| parent | 23d32f34e526cfb657a72e5b2dab86d1df765f0f (diff) | |
if expression
Diffstat (limited to 'src/checker/checker.c')
| -rw-r--r-- | src/checker/checker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/checker.c b/src/checker/checker.c index c61884253..c125049ac 100644 --- a/src/checker/checker.c +++ b/src/checker/checker.c @@ -379,7 +379,8 @@ void check_open_scope(Checker *c, AstNode *node) { GB_ASSERT(node->kind == AstNode_Invalid || is_ast_node_stmt(node) || is_ast_node_type(node) || - node->kind == AstNode_BlockExpr); + node->kind == AstNode_BlockExpr || + node->kind == AstNode_IfExpr ); Scope *scope = make_scope(c->context.scope, c->allocator); add_scope(c, node, scope); if (node->kind == AstNode_ProcType) { |