Commit 9e2c9bb0 authored by Russ Cox's avatar Russ Cox

gc: fix method expression bug

R=ken2
CC=golang-dev
https://golang.org/cl/206043
parent 4b4c6ab0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment