1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:34:41 -07:00
R=rsc
OCL=31467
CL=31467
This commit is contained in:
Ken Thompson 2009-07-10 16:12:21 -07:00
parent f7ac313629
commit ed124a971e

View File

@ -1204,6 +1204,7 @@ oldname(Sym *s)
c->outer = n->closure;
n->closure = c;
c->closure = n;
if(funclit != N)
funclit->cvars = list(c, funclit->cvars);
}
// return ref to closure var, not original