summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-12-10 01:24:09 -0800
committerOri Bernstein <ori@eigenstate.org>2016-12-10 01:24:09 -0800
commitc73cc580f7e048a81571b602ff0eae60afd2a5e3 (patch)
tree51f12a52f86898b5ac88a31ad531fcbc135e9035 /parse/gram.y
parent818ecb26f020678ce67e2d81e84bc3924d05d556 (diff)
downloadmc-c73cc580f7e048a81571b602ff0eae60afd2a5e3.tar.gz
Trait members are global.
We were capturing them and not specializing. This fixes one issue.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 6a61935..e980036 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -421,6 +421,7 @@ traitbody
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);