From 9e2c9bb0ca26bddc6248e93ae00801e4d4f36be5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 8 Feb 2010 21:40:35 -0800 Subject: [PATCH] gc: fix method expression bug R=ken2 CC=golang-dev https://golang.org/cl/206043 --- src/cmd/gc/typecheck.c | 1 + 1 file changed, 1 insertion(+) 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;