summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-19 22:51:14 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-19 22:51:14 -0700
commit1406e96fd9acc1075bec2dc59903e05c83f8d609 (patch)
treef9e8120e56b9d016ecf29ff74f1f52807d87db51 /parse/specialize.c
parentda04ee7b0352fe9d2605481d643ffff09588f99b (diff)
downloadmc-1406e96fd9acc1075bec2dc59903e05c83f8d609.tar.gz
Functions are functions, even if you specialize them.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 0a30baf..654e363 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -414,7 +414,7 @@ static Node *specializenode(Node *n, Tysubst *tsmap)
lappend(&decls, &ndecls, r);
break;
case Nfunc:
- r->func.scope = mkstab(0);
+ r->func.scope = mkstab(1);
r->func.scope->super = curstab();
pushstab(r->func.scope);
r->func.type = tysubst(n->func.type, tsmap);