mirror of https://github.com/golang/go.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
This commit is contained in:
parent
c4c4b3b467
commit
9844e4cd7c
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue