summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse/gram.y b/parse/gram.y
index c3db284..f9fa892 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -317,15 +317,15 @@ traits : traitvar {
traitvar
: traitlist generictype {
$$ = calloc(sizeof(Traitspec), 1);
- $$->traits = $1.nl;
- $$->ntraits = $1.nn;
+ $$->trait = $1.nl;
+ $$->ntrait = $1.nn;
$$->param = $2;
$$->aux = NULL;
}
| traitlist generictype Tret type {
$$ = calloc(sizeof(Traitspec), 1);
- $$->traits = $1.nl;
- $$->ntraits = $1.nn;
+ $$->trait = $1.nl;
+ $$->ntrait = $1.nn;
$$->param = $2;
$$->aux = $4;
}