summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-06 22:38:29 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-07 01:16:49 -0800
commit03857943018a82e1101cecbb026b5e11f4061dc5 (patch)
treef3bec664245228aa862cf28f35d0a6aeca899d14 /parse/type.c
parent061c7f286ebf2ee6e0afb0a0fb2b90397b848e23 (diff)
downloadmc-03857943018a82e1101cecbb026b5e11f4061dc5.tar.gz
Generic iterators now seem to work.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/type.c b/parse/type.c
index f6cd127..d711b6b 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -856,7 +856,7 @@ void iterableinit(Stab *st, Trait *tr)
func = mkdecl(Zloc, mkname(Zloc, "__iternext__"), ty);
func->decl.trait = tr;
- func->decl.__impls = mkht(tyhash, tyeq);
+ func->decl.impls = mkht(tyhash, tyeq);
func->decl.isgeneric = 1;
func->decl.isconst = 1;
func->decl.isglobl = 1;
@@ -876,7 +876,7 @@ void iterableinit(Stab *st, Trait *tr)
func = mkdecl(Zloc, mkname(Zloc, "__iterfin__"), ty);
func->decl.trait = tr;
- func->decl.__impls = mkht(tyhash, tyeq);
+ func->decl.impls = mkht(tyhash, tyeq);
func->decl.isgeneric = 1;
func->decl.isconst = 1;
func->decl.isglobl = 1;