]> Cypherpunks repositories - gostls13.git/commitdiff
bug 130 (go/defer) interface.method()
authorKen Thompson <ken@golang.org>
Tue, 24 Feb 2009 06:43:04 +0000 (22:43 -0800)
committerKen Thompson <ken@golang.org>
Tue, 24 Feb 2009 06:43:04 +0000 (22:43 -0800)
R=r
OCL=25356
CL=25356

src/cmd/6g/gen.c

index e2c06d1967b540b22529680663953afc42a72954..d14ad30bb9dc951f586cfc98a6c86ea4d9c0bef8 100644 (file)
@@ -776,6 +776,7 @@ cgen_callinter(Node *n, Node *res, int proc)
        cgen(&nodo, &nodr);     // REG = 32+offset(REG) -- i.m->fun[f]
 
        // BOTCH nodr.type = fntype;
+       nodr.type = n->left->type;
        ginscall(&nodr, proc);
 
        regfree(&nodr);