summaryrefslogtreecommitdiff
path: root/test/declbad.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-04 16:53:06 -0700
committerRuss Cox <rsc@golang.org>2009-08-04 16:53:06 -0700
commitb0e339b221a115017b1928ade1654c7f942fa0cf (patch)
tree1ae73c466deb6710a89051ccbfcd31b4b5277e8d /test/declbad.go
parentab3542db9daaaa967aa1e5b2cfef7d01d464cb75 (diff)
downloadgo-b0e339b221a115017b1928ade1654c7f942fa0cf.tar.gz
delayed evaluation of var blocks
R=ken OCL=32750 CL=32753
Diffstat (limited to 'test/declbad.go')
-rw-r--r--test/declbad.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/declbad.go b/test/declbad.go
index 7f6e56d7e..78f8c8d54 100644
--- a/test/declbad.go
+++ b/test/declbad.go
@@ -21,12 +21,12 @@ func main() {
{
// change of type for f
i, f, s := f3(); // GCCGO_ERROR "previous"
- f, g, t := f3(); // ERROR "redeclared|redefinition"
+ f, g, t := f3(); // ERROR "redeclared|redefinition|cannot assign"
}
{
// change of type for i
i, f, s := f3(); // GCCGO_ERROR "previous"
- j, i, t := f3(); // ERROR "redeclared|redefinition"
+ j, i, t := f3(); // ERROR "redeclared|redefinition|cannot assign"
}
{
// no new variables