summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);