summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-24 18:46:34 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-24 18:46:34 -0800
commit3dc461b0b09aae0b89c6310fe572f1bd7f693395 (patch)
tree923ed5809bdcf00fce5321a50aefd7bdac8afd34 /6/simp.c
parentee50a71ce18d4721e868e575d26d894bc8f13e37 (diff)
downloadmc-3dc461b0b09aae0b89c6310fe572f1bd7f693395.tar.gz
Fix importing/exporting traits.
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index e08649f..145ddfc 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -534,7 +534,7 @@ static Node *itertraitfn(Srcloc loc, Trait *tr, char *fn, Type *ty)
proto = tr->funcs[i];
dcl = htget(proto->decl.impls, ty);
var = mkexpr(loc, Ovar, dcl->decl.name, NULL);
- var->expr.type = dcl->decl.type;
+ var->expr.type = codetype(dcl->decl.type);
var->expr.did = dcl->decl.did;
return var;
}