ref: fb7ccc88638087796d28ff288d757633c1ccb944
parent: 1406e96fd9acc1075bec2dc59903e05c83f8d609
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 19 20:53:16 EDT 2017
Generics get specialized. No capture.
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -171,7 +171,7 @@
s = htget(st->dcl, n);
if (s) {
/* record that this is in the closure of this scope */
- if (fn && !s->decl.isglobl)
+ if (fn && !s->decl.isglobl && !s->decl.isgeneric)
htput(fn->env, s->decl.name, s);
return s;
}