shithub: mc

Download patch

ref: e7e1c3cc2d2e654a8977efbdaa7ac2fa03dc9ed0
parent: 3648de7668e10c8fb03a1d28c742d0ae66c96f07
author: Ori Bernstein <[email protected]>
date: Tue Dec 16 09:22:27 EST 2014

Transfer over the index when renaming nsnames.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1079,6 +1079,7 @@
     if (!s)
         fatal(n, "Undeclared var %s.%s", nsname->name.ns, nsname->name.name);
     var = mkexpr(n->loc, Ovar, nsname, NULL);
+    var->expr.idx = n->expr.idx;
     initvar(st, var, s);
     *ret = var;
 }