]> Cypherpunks repositories - gostls13.git/commit
if a struct s contains an anonymous interface value
authorRuss Cox <rsc@golang.org>
Thu, 7 May 2009 20:42:47 +0000 (13:42 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 7 May 2009 20:42:47 +0000 (13:42 -0700)
commit401a95aa83988cda238432af107b07bf9e79e547
tree6b3287784cef6b9ee63ca440a069dfecdbd4971b
parent0d3399286624f5fe604129c7ec25997325123d16
if a struct s contains an anonymous interface value
with method m, s.m() is ok and m now shows up
in s's method set for interface runtime.

see http://cl/28419-p2 for new test interface10.go.

R=ken
OCL=28420
CL=28423
src/cmd/gc/dcl.c
src/cmd/gc/go.h
src/cmd/gc/obj.c
src/cmd/gc/subr.c
src/cmd/gc/walk.c