1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:14:40 -07:00

gc: fix method expression bug

R=ken2
CC=golang-dev
https://golang.org/cl/206043
This commit is contained in:
Russ Cox 2010-02-08 21:40:35 -08:00
parent 4b4c6ab02d
commit 9e2c9bb0ca

View File

@ -481,6 +481,7 @@ reswitch:
n->op = ONAME;
n->sym = methodsym(sym, l->type);
n->type = methodfunc(n->type, 1);
n->xoffset = 0;
getinargx(n->type)->type->type = l->type; // fix up receiver
n->class = PFUNC;
ok = Erv;