ref: 1406e96fd9acc1075bec2dc59903e05c83f8d609
parent: da04ee7b0352fe9d2605481d643ffff09588f99b
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 19 18:51:14 EDT 2017
Functions are functions, even if you specialize them.
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -414,7 +414,7 @@
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);