diff options
author | Russ Cox <rsc@golang.org> | 2009-08-04 16:53:06 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-04 16:53:06 -0700 |
commit | dbe004efe48fbdb4c911eaf1771664e0457c3288 (patch) | |
tree | 1ae73c466deb6710a89051ccbfcd31b4b5277e8d /test/declbad.go | |
parent | b8732215c3fb3ae468e19871a126217615cecc68 (diff) | |
download | go-dbe004efe48fbdb4c911eaf1771664e0457c3288.tar.gz go-dbe004efe48fbdb4c911eaf1771664e0457c3288.zip |
delayed evaluation of var blocks
R=ken
OCL=32750
CL=32753
Diffstat (limited to 'test/declbad.go')
-rw-r--r-- | test/declbad.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/declbad.go b/test/declbad.go index 7f6e56d7e4..78f8c8d548 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 |