shithub: mc

Download patch

ref: 8e1bb5d4fc204ce149ceb545aef7b783d73641bc
parent: d2329579c1eb281e8885b9a924c5c92135f399f7
author: Ori Bernstein <[email protected]>
date: Tue Jan 16 17:32:40 EST 2018

Only set the base type on iter traits.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -542,7 +542,8 @@
 			if (!t->trneed)
 				t->trneed = mkbs();
 			bsput(t->trneed, tr->uid);
-			htput(seqbase, t, t->spec[i]->aux);
+			if (nameeq(t->spec[i]->trait[j], traittab[Tciter]->name))
+				htput(seqbase, t, t->spec[i]->aux);
 		}
 	}