diff options
author | Russ Cox <rsc@golang.org> | 2009-09-15 12:42:24 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-15 12:42:24 -0700 |
commit | 7f51e880cd29a4c63860dad59cc60916119cc2df (patch) | |
tree | 8e115ff2eb9c4f2040c2c1b69dc50de1d874981d /test/assign.go | |
parent | c6fac6bdd2b1fd69442a455fb47d09022241dd69 (diff) | |
download | go-7f51e880cd29a4c63860dad59cc60916119cc2df.tar.gz |
last round: non-package code
R=r
DELTA=127 (38 added, 3 deleted, 86 changed)
OCL=34640
CL=34650
Diffstat (limited to 'test/assign.go')
-rw-r--r-- | test/assign.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/assign.go b/test/assign.go index 9fe9ea079..acddefef6 100644 --- a/test/assign.go +++ b/test/assign.go @@ -17,17 +17,21 @@ func main() { { var x, y sync.Mutex; x = y; // ERROR "assignment\[ -~\]*Mutex" + _ = x; } { var x, y T; x = y; // ERROR "assignment\[ -~\]*Mutex" + _ = x; } { var x, y [2]sync.Mutex; x = y; // ERROR "assignment\[ -~\]*Mutex" + _ = x; } { var x, y [2]T; x = y; // ERROR "assignment\[ -~\]*Mutex" + _ = x; } } |