Commit 9844e4cd authored by Rémy Oudompheng's avatar Rémy Oudompheng

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
parent c4c4b3b4
...@@ -41,7 +41,8 @@ func main() { ...@@ -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
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment