summaryrefslogtreecommitdiff
path: root/test/bugs
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2011-03-29 06:49:21 -0700
committerIan Lance Taylor <iant@golang.org>2011-03-29 06:49:21 -0700
commitfce06cb066e66eeaadc057c0a33495f5c2de0c44 (patch)
tree79c3050e061866be78d54048e0ce57b878e9e09b /test/bugs
parent9e21d2f02392cb5df47992333c8737532a4bf261 (diff)
downloadgo-fce06cb066e66eeaadc057c0a33495f5c2de0c44.tar.gz
test: adjust bugs/bug322 to match current spec.
R=gri, rsc1 CC=golang-dev http://codereview.appspot.com/4328041
Diffstat (limited to 'test/bugs')
-rw-r--r--test/bugs/bug322.dir/main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/bugs/bug322.dir/main.go b/test/bugs/bug322.dir/main.go
index a99ed3bc2..0ab5b32e4 100644
--- a/test/bugs/bug322.dir/main.go
+++ b/test/bugs/bug322.dir/main.go
@@ -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
+*/