diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-10-07 21:52:57 +0200 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-10-07 21:52:57 +0200 |
commit | 9844e4cd7cc52ecbe7d49307b6546a118de5bea7 (patch) | |
tree | ac64bf5a54807ddffbecdd9607ea32b571be7610 /test/declbad.go | |
parent | c4c4b3b46729d8df3a5ee7bd5f0e463290e206da (diff) | |
download | go-9844e4cd7cc52ecbe7d49307b6546a118de5bea7.tar.gz go-9844e4cd7cc52ecbe7d49307b6546a118de5bea7.zip |
test: correct type in declbad.go
The test is not about type mismatches and it causes
an extra error to appear.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6614062
Diffstat (limited to 'test/declbad.go')
-rw-r--r-- | test/declbad.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/declbad.go b/test/declbad.go index ff53ab0d7c..728eceb7f1 100644 --- a/test/declbad.go +++ b/test/declbad.go @@ -41,7 +41,8 @@ func main() { { // multiline no new variables i := f1 - i := func() { // ERROR "redeclared|no new|incompatible" + i := func() int { // ERROR "redeclared|no new|incompatible" + return 0 } _ = i } |