From: Rémy Oudompheng Date: Sun, 7 Oct 2012 19:52:57 +0000 (+0200) Subject: test: correct type in declbad.go X-Git-Tag: go1.1rc2~2210 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9844e4cd7cc52ecbe7d49307b6546a118de5bea7;p=gostls13.git 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 --- 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 }