]> Cypherpunks repositories - gostls13.git/commit
gc: relax assignability of method receivers
authorAnthony Martin <ality@pbrane.org>
Tue, 24 May 2011 23:48:19 +0000 (19:48 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 24 May 2011 23:48:19 +0000 (19:48 -0400)
commit0b209b36b6ae03f81d93f07bcbbdcb8fa8a1aebe
treec6c169e158880c88af24db88f67773551ec64975
parent3857747dce065b3cfae3e9df38ea90dd84661f19
gc: relax assignability of method receivers

The spec was adjusted in commit df410d6a4842 to allow the
implicit assignment of strutures with unexported fields in
method receivers.  This change updates the compiler.

Also moved bug322 into fixedbugs and updated golden.out
to reflect the removal of the last known bug.

Fixes #1402.

R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/4526069
src/cmd/gc/typecheck.c
test/fixedbugs/bug226.dir/y.go
test/fixedbugs/bug322.dir/lib.go [moved from test/bugs/bug322.dir/lib.go with 100% similarity]
test/fixedbugs/bug322.dir/main.go [moved from test/bugs/bug322.dir/main.go with 69% similarity]
test/fixedbugs/bug322.go [moved from test/bugs/bug322.go with 100% similarity]
test/golden.out