]> Cypherpunks repositories - gostls13.git/commitdiff
test: adjust bugs/bug322 to match current spec.
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:49:21 +0000 (06:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:49:21 +0000 (06:49 -0700)
R=gri, rsc1
CC=golang-dev
https://golang.org/cl/4328041

test/bugs/bug322.dir/main.go
test/golden.out

index a99ed3bc2907223cce413133bd5e71a58f37a96b..0ab5b32e4536429089ef075fee995a2fc9978388 100644 (file)
@@ -19,8 +19,9 @@ func main() {
        t.M()
        t.PM()
 
-       var i1 I = t
-       i1.M()
+       // This is still an error.
+       // var i1 I = t
+       // i1.M()
        
        // This combination is illegal because
        // PM requires a pointer receiver.
@@ -42,6 +43,5 @@ func main() {
 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:22: implicit assignment of unexported field 'x' of lib.T in assignment
-bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
-*/
\ No newline at end of file
+bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
+*/
index cc699d4500e012d02fdf555f2b0e828ac20ff324..d8e89e866d76c6faba64b9369fbac582188c4072 100644 (file)
@@ -161,8 +161,7 @@ panic: interface conversion: interface is main.T, not main.T
 
 =========== 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:22: implicit assignment of unexported field 'x' of lib.T in assignment
-bugs/bug322.dir/main.go:31: implicit assignment of unexported field 'x' of lib.T in method receiver
+bugs/bug322.dir/main.go:32: implicit assignment of unexported field 'x' of lib.T in method receiver
 BUG: fails incorrectly
 
 =========== bugs/bug324.go