1
0
mirror of https://github.com/golang/go synced 2024-09-30 13:28:38 -06:00
go/test/fixedbugs/issue13777.dir/burnin.go

20 lines
291 B
Go
Raw Normal View History

package burnin
type sendCmdFunc func(string)
func sendCommand(c string) {}
func NewSomething() {
// This works...
// var sendCmd sendCmdFunc
// sendCmd = sendCommand
// So does this...
//sendCmd := sendCmdFunc(sendCommand)
// This fails...
sendCmd := sendCommand
_ = sendCmd
}