1
0
mirror of https://github.com/golang/go synced 2024-11-25 18:27:56 -07:00

test: adjust bugs/bug322 to match current spec.

R=gri, rsc1
CC=golang-dev
https://golang.org/cl/4328041
This commit is contained in:
Ian Lance Taylor 2011-03-29 06:49:21 -07:00
parent 469a747e02
commit 61c9d3f08a
2 changed files with 6 additions and 7 deletions

View File

@ -19,8 +19,9 @@ func main() {
t.M() t.M()
t.PM() t.PM()
var i1 I = t // This is still an error.
i1.M() // var i1 I = t
// i1.M()
// This combination is illegal because // This combination is illegal because
// PM requires a pointer receiver. // PM requires a pointer receiver.
@ -42,6 +43,5 @@ func main() {
These should not be errors anymore: These should not be errors anymore:
bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver
bug322.dir/main.go:22: implicit assignment of unexported field 'x' of lib.T in assignment bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
*/ */

View File

@ -161,8 +161,7 @@ panic: interface conversion: interface is main.T, not main.T
=========== bugs/bug322.go =========== bugs/bug322.go
bugs/bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver bugs/bug322.dir/main.go:19: implicit assignment of unexported field 'x' of lib.T in method receiver
bugs/bug322.dir/main.go:22: implicit assignment of unexported field 'x' of lib.T in assignment bugs/bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
bugs/bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
BUG: fails incorrectly BUG: fails incorrectly
=========== bugs/bug324.go =========== bugs/bug324.go