diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-17 12:04:17 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-17 12:04:17 +0100 |
| commit | c4fe2ace0595ae51f620aaada1807295e41cd6b5 (patch) | |
| tree | 98f9c7dfc4d21e2e93687566a055deea4502bfa4 /src/checker/expr.cpp | |
| parent | 511f3744f695d52330651b17f1e3ef49c56b7c76 (diff) | |
Fix Scoping of proc type decls
Diffstat (limited to 'src/checker/expr.cpp')
| -rw-r--r-- | src/checker/expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp index 8f017df80..c74d9e332 100644 --- a/src/checker/expr.cpp +++ b/src/checker/expr.cpp @@ -409,7 +409,10 @@ Type *check_type(Checker *c, AstNode *e, Type *named_type) { case_ast_node(pt, ProcType, e); type = alloc_type(c->allocator, Type_Proc); set_base_type(named_type, type); + CheckerContext context = c->context; + c->context.scope = make_scope(c->context.scope, c->allocator); check_procedure_type(c, type, e); + c->context = context; goto end; case_end; |