1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:34:42 -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,7 +1204,8 @@ oldname(Sym *s)
c->outer = n->closure;
n->closure = c;
c->closure = n;
funclit->cvars = list(c, funclit->cvars);
if(funclit != N)
funclit->cvars = list(c, funclit->cvars);
}
// return ref to closure var, not original
return n->closure;