diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 0643f77a953..11d142eebb5 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -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;