shithub: mc

Download patch

ref: 70d8c38eef83216f3ea9ea008bb10923b58623d8
parent: eab4ea29aeb0fc9939a4d229da658d9693089dc5
parent: e46120257f58f8f699a235949c8117eccc6aafa2
author: Ori Bernstein <[email protected]>
date: Thu Jun 7 20:20:45 EDT 2012

Merge branch 'master' of git+ssh://mimir.eigenstate.org/git/ori/mc2

--- a/parse/type.c
+++ b/parse/type.c
@@ -226,8 +226,6 @@
 {
     if (!t->cstrs)
         t->cstrs = mkbs();
-    if (t->type != Tyvar && t->type != Typaram)
-        return 0;
     bsput(t->cstrs, c->cid);
     return 1;
 }
@@ -449,6 +447,11 @@
     /* array :: tcidx, tcslice */
     tycstrs[Tyarray][0] = cstrtab[Tcidx];
     tycstrs[Tyarray][1] = cstrtab[Tcslice];
+
+    /* index hack :: tcidx, tcslice, tctest */
+    tycstrs[Tyidxhack][0] = cstrtab[Tcidx];
+    tycstrs[Tyidxhack][1] = cstrtab[Tcslice];
+    tycstrs[Tyidxhack][2] = cstrtab[Tctest];
 
     /* ptr :: tcslice, tctest */
     tycstrs[Typtr][0] = cstrtab[Tcidx];