]> Cypherpunks repositories - gostls13.git/commitdiff
closure bug: carry along outnamed flag.
authorRuss Cox <rsc@golang.org>
Tue, 31 Mar 2009 02:21:36 +0000 (19:21 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 31 Mar 2009 02:21:36 +0000 (19:21 -0700)
R=ken
OCL=26930
CL=26930

src/cmd/gc/dcl.c

index f1291dbdba5d8968a07a85e1995293a03a4d3a2b..c9f1b1aacbb64e2021208aa4126e717619e11146 100644 (file)
@@ -573,6 +573,7 @@ funclit1(Type *type, Node *body)
                out = rev(out);
 
                ft = functype(N, in, out);
+               ft->outnamed = type->outnamed;
        }
 
        // declare function.