summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-02 00:02:19 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-11 22:16:11 -0800
commite6967548eec255e4518b1cdff5955d4b333f103b (patch)
tree5ff790acdb562f18a14b00672cd8a17894dc5580 /parse/gram.y
parent90e26e0f687da28530b3b967df0cedf20407c071 (diff)
downloadmc-e6967548eec255e4518b1cdff5955d4b333f103b.tar.gz
Try harder to specialize. Still some bugs.
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;
}