summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-02-18 22:25:37 -0800
committerOri Bernstein <ori@eigenstate.org>2018-02-18 22:47:24 -0800
commit7b625e88ac4f7d8bb5805efa498b29640f36eb80 (patch)
tree51fc378852296f2674616d95bb1e9cbc72bd62fd /parse/infer.c
parentceca87556db62e3e6b27e362a0391a0bcc322f3d (diff)
downloadmc-7b625e88ac4f7d8bb5805efa498b29640f36eb80.tar.gz
Resolve the impl() type.
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 9d2ba7e..360ca36 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1324,6 +1324,8 @@ initvar(Node *n, Node *s)
fatal(n, "attempting to refer to hidden decl %s", ctxstr(n));
param = n->expr.param;
+ if (param)
+ tyresolve(param);
if (s->decl.isgeneric) {
subst = mksubst();
if (param)