shithub: mc

Download patch

ref: a537b8fe4a69dea9e3150b01785b18c5d4d3b374
parent: 06424fdd8ecf8082dac5c109421919d0a3ce169a
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;
 }