shithub: mc

Download patch

ref: c42fbb600b463eb1c8471bfd34ad829aad5499c3
parent: c3fca3a06a2584a0193b352410febd43d136d53e
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 3 18:41:09 EST 2016

Only look up base types if there's no seqbase trait.

    This was breaking other code that depended on traits being set
    up correctly.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -882,7 +882,7 @@
 {
 	Type *t;
 
-	a = tybase(a);
+	a = tysearch(a);
 	t = htget(st->seqbase, a);
 	if (!t && (a->type == Tyslice || a->type == Tyarray || a->type == Typtr))
 		t = a->sub[0];