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:
parent
4b4c6ab02d
commit
9e2c9bb0ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user