summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-02-09 21:48:50 -0800
committerOri Bernstein <ori@eigenstate.org>2019-02-09 21:48:50 -0800
commita8ab64015b9419f0a32c1162c2442c27163dff66 (patch)
tree391e7008d65ec9b2751ce51d29fa3e1abe7606fb /parse/gram.y
parentbe26bedd4883ebc3679ece90df4ba508fee87f8e (diff)
downloadmc-a8ab64015b9419f0a32c1162c2442c27163dff66.tar.gz
Work towards removing the streq check.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 749d7a5..bd54217 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -1197,7 +1197,8 @@ setwith(Type *ty, Traitspec **ts, size_t nts)
for (i = 0; i < nts; i++) {
switch (ty->type) {
case Typaram:
- if (tyeq(ty, ts[i]->param))
+ assert(ts[i]->param->type == Typaram);
+ if (streq(ty->pname, ts[i]->param->pname))
lappend(&ty->spec, &ty->nspec, ts[i]);
break;