Fixes #567.
R=rsc
CC=golang-dev
https://golang.org/cl/195041
if !isIdent {
pos := x.(ast.Expr).Pos()
p.errorExpected(pos, "identifier")
- idents[i] = &ast.Ident{pos, ast.NewObj(ast.Err, pos, "")}
+ ident = &ast.Ident{pos, ast.NewObj(ast.Err, pos, "_")}
}
idents[i] = ident
}
`package main; func main() { if f(T{}) {} }` + "\n",
`package main; func main() { _ = (<-chan int)(x) }` + "\n",
`package main; func main() { _ = (<-chan <-chan int)(x) }` + "\n",
+ `package main; func f(func() (func() int))` + "\n",
}