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
This commit is contained in:
Rémy Oudompheng 2012-10-07 21:52:57 +02:00
parent c4c4b3b467
commit 9844e4cd7c
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ func main() {
{ {
// multiline no new variables // multiline no new variables
i := f1 i := f1
i := func() { // ERROR "redeclared|no new|incompatible" i := func() int { // ERROR "redeclared|no new|incompatible"
return 0
} }
_ = i _ = i
} }