ref: c73cc580f7e048a81571b602ff0eae60afd2a5e3
parent: 818ecb26f020678ce67e2d81e84bc3924d05d556
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 9 20:24:09 EST 2016
Trait members are global. We were capturing them and not specializing. This fixes one issue.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -421,6 +421,7 @@
Node *d;
$$ = $1;
d = mkdecl($2->loc, mkname($2->loc, $2->id), $4);
+ d->decl.isglobl = 1;
d->decl.isgeneric = 1;
d->decl.isconst = 1;
lappend(&$$.nl, &$$.nn, d);