summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue13777.dir/burnin.go
blob: 512563975ed64fa6ac60d95c00bc40f37a5bb0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}