ref: 5d86a0287cebaf7d1bd14272e6313469d9b366ca
parent: 31329a5bbacf4a295633260120dc3950ea0c8f88
author: Ori Bernstein <[email protected]>
date: Fri Aug 9 09:33:36 EDT 2013
Substitute types in specialized generic Tynames
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1212,6 +1212,9 @@
if (t->udecls[i]->etype)
t->udecls[i]->etype = tyfix(st, ctx, t->udecls[i]->etype);
}
+ } else if (t->type == Tyname) {
+ for (i = 0; i < t->nparam; i++)
+ t->param[i] = tyfix(st, ctx, t->param[i]);
}
for (i = 0; i < t->nsub; i++)
t->sub[i] = tyfix(st, ctx, t->sub[i]);