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 | e6a328bbdc8f5cad199cda53dab7d310874e06b5 (patch) | |
tree | 8e115ff2eb9c4f2040c2c1b69dc50de1d874981d /test/fixedbugs/bug183.go | |
parent | cf9118ad0e6c9fd6defe78270ea8044c2ed89f28 (diff) | |
download | golang-e6a328bbdc8f5cad199cda53dab7d310874e06b5.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/fixedbugs/bug183.go')
-rw-r--r-- | test/fixedbugs/bug183.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fixedbugs/bug183.go b/test/fixedbugs/bug183.go index 47f8bfe74..7fd6e4942 100644 --- a/test/fixedbugs/bug183.go +++ b/test/fixedbugs/bug183.go @@ -11,7 +11,8 @@ type T int func f() { var x struct { T }; var y struct { T T }; - x = y // ERROR "cannot|incompatible" + x = y; // ERROR "cannot|incompatible" + _ = x; } type T1 struct { T } @@ -20,6 +21,7 @@ type T2 struct { T T } func g() { var x T1; var y T2; - x = y // ERROR "cannot|incompatible" + x = y; // ERROR "cannot|incompatible" + _ = x; } |